Add initial config for animal
This commit is contained in:
parent
eba9eb03f4
commit
695c0eba9e
7 changed files with 180 additions and 0 deletions
20
animal/web.nix
Normal file
20
animal/web.nix
Normal 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 = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue