diff options
Diffstat (limited to 'static.nix')
-rw-r--r-- | static.nix | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/static.nix b/static.nix index 6ff96aa..4bf71b4 100644 --- a/static.nix +++ b/static.nix @@ -75,16 +75,25 @@ in { add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; ''; forceSSL = true; - locations = { - "/".index = "index.html index.xhtml"; - "/~mingnho/chat" = { - proxyPass = "http://127.0.0.1:3000"; - proxyWebsockets = true; - }; - }; + http2 = false; + locations."/".index = "index.html index.xhtml"; root = "/var/lib/www/${domain}"; }; + "khoanh.${domain}" = { + enableACME = true; + forceSSL = true; + locations."/".index = "index.xhtml"; + root = "/var/lib/www/khoanh.${domain}"; + }; + + "cercle.libre" = { + addSSL = true; + useACMEHost = "khoanh.${domain}"; + locations."/".index = "index.xhtml"; + root = "/var/lib/www/cercle.libre"; + }; + "adol.pw" = { enableACME = true; forceSSL = true; @@ -99,6 +108,8 @@ in { forceSSL = true; root = "/var/lib/www/septagram.suricrasia.online"; }; + + "xrvs.geek".root = "/var/lib/www/xrvs.geek"; } // (let aliasOpenNIC = openNIC: icann: config: { ${openNIC} = { # https://wiki.opennic.org/opennic/tls @@ -110,9 +121,7 @@ in { forceSSL = true; } // config; }; - in (aliasOpenNIC "cercle.libre" "khoanh.${domain}" { - root = "/var/lib/www/cercle.libre"; - }) // (aliasOpenNIC "sinyx.indy" "cnx.gdn" { + in (aliasOpenNIC "sinyx.indy" "cnx.gdn" { root = "/var/lib/www/cnx.gdn"; }) // (aliasOpenNIC "pix.sinyx.indy" "px.cnx.gdn" { locations = { |