Update modules/nginx.nix

This commit is contained in:
Alexander Bantyev 2020-03-10 01:12:44 +03:00
parent bfdf702128
commit 45f89cb531
1 changed files with 9 additions and 2 deletions

View File

@ -9,12 +9,19 @@
};
in {
"balsoft.ru" = {
locations."/" = { root = "/var/lib/balsoft.ru"; index = "index.txt"; };
locations."/" = {
root = "/var/lib/balsoft.ru";
index = "index.txt";
};
enableACME = true;
addSSL = true;
};
"corona.balsoft.ru" = {
locations."/" = { root = "/var/lib/corona"; index = "index.html"; };
locations."/" = {
root = "/var/lib/corona";
index = "index.html";
extraConfig = "add_header 'Access-Control-Allow-Origin' '*'";
};
} // default;
"cache.balsoft.ru" = {
locations."/" = { proxyPass = "http://localhost:5000"; };