mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-05-15 10:04:36 +00:00
Use $proxy_add_x_forwarded_for for custom locations
Use $proxy_add_x_forwarded_for when setting X-Forwarded-For in custom locations to match how it is set for default location
This commit is contained in:
parent
34c703f8b4
commit
6834d1b101
@ -4,7 +4,7 @@
|
||||
proxy_set_header Host $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-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
|
||||
|
Loading…
x
Reference in New Issue
Block a user