pastila: nginx: isomorphis.me

This commit is contained in:
root 2024-06-01 20:22:49 +02:00
parent c42316b4f6
commit fe941dcf31

View file

@ -2,6 +2,7 @@
let let
up_dir = /srv/up; up_dir = /srv/up;
isomorphisme_dir = /srv/isomorphis.me;
in in
{ {
services.nginx.enable = true; services.nginx.enable = true;
@ -35,4 +36,17 @@ in
}; };
}; };
}; };
services.nginx.virtualHosts."isomorphis.me" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = isomorphisme_dir;
};
};
system.activationScripts."srv-permissions" = ''
chown -R up:nginx /srv/up
chown -R nginx:nginx /srv/isomorphis.me
'';
} }