mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 01:15:14 +00:00 
			
		
		
		
	Ignore local subnets for real IP determination
This commit is contained in:
		@@ -27,9 +27,9 @@ http {
 | 
			
		||||
	tcp_nodelay                   on;
 | 
			
		||||
	client_body_temp_path         /tmp/nginx/body 1 2;
 | 
			
		||||
	keepalive_timeout             90s;
 | 
			
		||||
        proxy_connect_timeout         90s;
 | 
			
		||||
        proxy_send_timeout            90s;
 | 
			
		||||
        proxy_read_timeout            90s;
 | 
			
		||||
	proxy_connect_timeout         90s;
 | 
			
		||||
	proxy_send_timeout            90s;
 | 
			
		||||
	proxy_read_timeout            90s;
 | 
			
		||||
	ssl_prefer_server_ciphers     on;
 | 
			
		||||
	gzip                          on;
 | 
			
		||||
	proxy_ignore_client_abort     off;
 | 
			
		||||
@@ -60,6 +60,9 @@ 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;
 | 
			
		||||
	# NPM generated CDN ip ranges:
 | 
			
		||||
	include conf.d/include/ip_ranges.conf;
 | 
			
		||||
	# always put the following 2 lines after ip subnets:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user