Files
nginx-proxy-manager/docker/rootfs/etc/nginx/conf.d/include/proxy.conf
Nick Craig c571599d45 adding wrapper for proxy header passing.
add a selection to the proxy editing page and passes that down into the templates.
Removed set_proxy_header from locations and moved to server directive. these will inherit down into locations if they are not defined there.
2022-03-09 10:19:51 -05:00

8 lines
289 B
Plaintext

add_header X-Served-By $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass $forward_scheme://$server:$port$request_uri;