migrate dev.isomorphis.me

This commit is contained in:
root 2024-06-29 12:34:51 +02:00
parent 0b72365fb5
commit b663fba9d1

View file

@ -4,6 +4,7 @@ let
up_dir = "/srv/up"; up_dir = "/srv/up";
isomorphisme_dir = "/srv/isomorphis.me"; isomorphisme_dir = "/srv/isomorphis.me";
tremeg_dir = "/srv/tremeg.net"; tremeg_dir = "/srv/tremeg.net";
dev_dir = "/srv/dev";
in in
{ {
services.nginx.enable = true; services.nginx.enable = true;
@ -52,9 +53,18 @@ in
}; };
}; };
services.nginx.virtualHosts."dev.isomorphis.me" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = "${dev_dir}/public";
};
};
system.activationScripts."srv-permissions" = '' system.activationScripts."srv-permissions" = ''
chown -R up:nginx ${up_dir} chown -R up:nginx ${up_dir}
chown -R nginx:nginx ${isomorphisme_dir} chown -R nginx:nginx ${isomorphisme_dir}
chown -R nginx:nginx ${tremeg_dir} chown -R nginx:nginx ${tremeg_dir}
chown -R nginx:nginx ${dev_dir}
''; '';
} }