machine-config/animal/web.nix

21 lines
470 B
Nix
Raw Normal View History

2024-07-07 20:37:49 -05:00
{
services.caddy = {
enable = true;
virtualHosts."animal.chandlerswift.com".extraConfig = ''
respond "Hello, world!"
'';
};
services.caddy.virtualHosts."maps.animal.chandlerswift.com".extraConfig = ''
encode gzip
file_server
root /srv/maps.animal.chandlerswift.com
# hide .git # ???
'';
systemd.tmpfiles.settings."10-maps-animal-chandlerswift-com" = {
"/srv/maps.animal.chandlerswift.com" = {
d = {};
};
};
}