Just use recommended proxy settings
This commit is contained in:
parent
e51a1d5bb4
commit
bb49e8c2e8
|
@ -375,13 +375,14 @@ in {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = "http://localhost:${toString cfg.port}";
|
proxyPass = "http://localhost:${toString cfg.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
recommendedProxySettings = true;
|
||||||
proxy_set_header Host $host;
|
# extraConfig = ''
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
# proxy_set_header Host $host;
|
||||||
proxy_set_header Connection "Upgrade";
|
# proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
# proxy_set_header Connection "Upgrade";
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
# proxy_set_header X-Real-IP $remote_addr;
|
||||||
'';
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
# '';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue