diff options
-rw-r--r-- | configuration.nix | 5 | ||||
-rw-r--r-- | static.nix | 13 |
2 files changed, 17 insertions, 1 deletions
diff --git a/configuration.nix b/configuration.nix index 798e300..f2c52fa 100644 --- a/configuration.nix +++ b/configuration.nix @@ -94,6 +94,11 @@ openssh.authorizedKeys.keyFiles = [ "/etc/ssh/int2k.pub" ]; }; + mingnho = { + isNormalUser = true; + openssh.authorizedKeys.keyFiles = [ "/etc/ssh/mingnho.pub" ]; + }; + owocean = { isNormalUser = true; openssh.authorizedKeys.keyFiles = [ "/etc/ssh/owocean.pub" ]; diff --git a/static.nix b/static.nix index 25f48af..2ce4124 100644 --- a/static.nix +++ b/static.nix @@ -54,8 +54,13 @@ in { }; nginx = { + additionalModules = [ pkgs.nginxModules.pam ]; + appendHttpConfig = '' + access_log off; + ''; enable = true; enableReload = true; + logError = "/dev/null"; recommendedGzipSettings = true; recommendedOptimisation = true; recommendedProxySettings = true; @@ -64,7 +69,13 @@ in { ${domain} = { enableACME = true; forceSSL = true; - locations."/".index = "index.xhtml"; + locations = { + "/".index = "index.html index.xhtml"; + "/~mingnho/chat" = { + proxyPass = "http://127.0.0.1:3000"; + proxyWebsockets = true; + }; + }; root = "/var/lib/www/${domain}"; }; |