Sets real_ip ranges to local network only

This commit is contained in:
chaptergy 2021-06-07 08:28:23 +02:00
parent 5e6ce8643f
commit df5836e573
No known key found for this signature in database
GPG Key ID: BDFB615E550409E7

View File

@ -58,11 +58,11 @@ http {
}
# Real IP Determination
# Docker subnet:
set_real_ip_from 172.0.0.0/8;
# Local subnets:
set_real_ip_from 10.0.0.0/8;
set_real_ip_from 192.0.0.0/8;
set_real_ip_from 172.16.0.0/12; # Includes Docker subnet
set_real_ip_from 192.168.0.0/16;
# NPM generated CDN ip ranges:
include conf.d/include/ip_ranges.conf;
# always put the following 2 lines after ip subnets: