Just use recommended proxy settings

This commit is contained in:
niten 2023-07-17 19:36:14 -07:00
parent e51a1d5bb4
commit bb49e8c2e8
1 changed files with 8 additions and 7 deletions

View File

@ -375,13 +375,14 @@ in {
"/" = {
proxyPass = "http://localhost:${toString cfg.port}";
proxyWebsockets = true;
extraConfig = ''
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
'';
recommendedProxySettings = true;
# extraConfig = ''
# proxy_set_header Host $host;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "Upgrade";
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# '';
};
};
};