migrate dev.isomorphis.me
This commit is contained in:
parent
0b72365fb5
commit
b663fba9d1
1 changed files with 10 additions and 0 deletions
|
@ -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}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
Loading…
Reference in a new issue