mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-15 13:48:23 +00:00
Keep the incoming Host authority for default and custom locations, with the existing hostname fallback when Host is absent. Add a built-image regression that validates Host against Origin and Referer and run it after the CI image build.
9 lines
363 B
Plaintext
9 lines
363 B
Plaintext
add_header X-Served-By $host;
|
|
proxy_set_header Host $forward_host;
|
|
proxy_set_header X-Forwarded-Scheme $x_forwarded_scheme;
|
|
proxy_set_header X-Forwarded-Proto $x_forwarded_proto;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_pass $forward_scheme://$server:$port$request_uri;
|
|
|