pastila: nginx: isomorphis.me
This commit is contained in:
parent
c42316b4f6
commit
fe941dcf31
1 changed files with 15 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
let
|
||||
up_dir = /srv/up;
|
||||
isomorphisme_dir = /srv/isomorphis.me;
|
||||
in
|
||||
{
|
||||
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
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue