Add a trailing /....

And put proxyPass in the right place?
This commit is contained in:
niten 2024-01-17 22:59:15 -08:00
parent bca56e3d46
commit a170658516
1 changed files with 2 additions and 2 deletions

View File

@ -138,13 +138,13 @@ in {
services.nginx = { services.nginx = {
enable = true; enable = true;
recommendedProxySettings = true;
virtualHosts."${cfg.hostname}" = { virtualHosts."${cfg.hostname}" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = "http://localhost:${toString cfg.port}"; proxyPass = "http://localhost:${toString cfg.port}/";
proxyWebsockets = true; proxyWebsockets = true;
recommendedProxySettings = true;
}; };
}; };
}; };