Add extra headers
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
7036022071
commit
673f533643
@ -13,6 +13,7 @@ proxy_set_header X-Real-IP $remote_addr;
|
|||||||
# Restore original method & URL
|
# Restore original method & URL
|
||||||
proxy_set_header X-Original-Method $request_method;
|
proxy_set_header X-Original-Method $request_method;
|
||||||
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
|
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
|
||||||
|
proxy_set_header X-Original-URI $request_uri;
|
||||||
|
|
||||||
# Forward host header
|
# Forward host header
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
@ -23,5 +24,7 @@ proxy_set_header Connection "upgrade";
|
|||||||
|
|
||||||
# Enable X-Forwarded headers
|
# Enable X-Forwarded headers
|
||||||
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-Host $host;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Ssl on;
|
||||||
|
proxy_set_header X-Forwarded-Port $server_port;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user