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:
woliver99 2024-08-13 00:16:58 -04:00 committed by GitHub
parent 63d06da8a8
commit 0480b88e57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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