From df5836e57324c7432dce59fc8932d20044a4186c Mon Sep 17 00:00:00 2001 From: chaptergy Date: Mon, 7 Jun 2021 08:28:23 +0200 Subject: [PATCH] Sets real_ip ranges to local network only --- docker/rootfs/etc/nginx/nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/rootfs/etc/nginx/nginx.conf b/docker/rootfs/etc/nginx/nginx.conf index 05ea6f40..40432968 100644 --- a/docker/rootfs/etc/nginx/nginx.conf +++ b/docker/rootfs/etc/nginx/nginx.conf @@ -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: