Add initial config for animal

This commit is contained in:
Chandler Swift 2024-07-07 20:37:49 -05:00
parent eba9eb03f4
commit 695c0eba9e
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
7 changed files with 180 additions and 0 deletions

20
animal/web.nix Normal file
View file

@ -0,0 +1,20 @@
{
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 = {};
};
};
}