Use x-real-ip header for the real-ip module

This commit is contained in:
Jamie Curnow
2020-10-19 11:40:50 +10:00
parent 96f401cba6
commit f192748bf9
2 changed files with 3 additions and 197 deletions

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-Forwarded-For;
real_ip_header X-Real-IP;
real_ip_recursive on;
# Files generated by NPM