Switch from X-Real-IP to X-Forwarded-For in nginx.conf
X-Forwarded-For is more commonly used across various proxies and load balancers, including Cloudflare, which does not use X-Real-IP.
This commit is contained in:
parent
63d06da8a8
commit
0480b88e57
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ http {
|
|||
# NPM generated CDN ip ranges:
|
||||
include conf.d/include/ip_ranges.conf;
|
||||
# always put the following 2 lines after ip subnets:
|
||||
real_ip_header X-Real-IP;
|
||||
real_ip_header X-Forwarded-For;
|
||||
real_ip_recursive on;
|
||||
|
||||
# Custom
|
||||
|
|
Loading…
Reference in a new issue