Add extra headers

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-10-13 01:25:32 -07:00 committed by GitHub
parent 7036022071
commit 673f533643
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;