Update NGINX proxy headers.
This commit is contained in:
parent
1e26499932
commit
3852896273
1 changed files with 4 additions and 2 deletions
|
@ -60,11 +60,13 @@ http {
|
||||||
resolver {{ reverse_proxy['resolver'] }};
|
resolver {{ reverse_proxy['resolver'] }};
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-Port $server_port;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
|
proxy_set_header X-Forwarded-Port $server_port;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header X-Forwarded-Scheme $scheme;
|
proxy_set_header X-Forwarded-Scheme $scheme;
|
||||||
|
proxy_set_header X-Forwarded-URI $request_uri;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
||||||
# Needed to support websocket connections
|
# Needed to support websocket connections
|
||||||
# See: https://nginx.org/en/docs/http/websocket.html
|
# See: https://nginx.org/en/docs/http/websocket.html
|
||||||
|
|
Loading…
Reference in a new issue