mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-08 12:38:14 -05:00
Ignore local subnets for real IP determination
This commit is contained in:
parent
d68656559c
commit
5d65166777
@ -27,9 +27,9 @@ http {
|
|||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
client_body_temp_path /tmp/nginx/body 1 2;
|
client_body_temp_path /tmp/nginx/body 1 2;
|
||||||
keepalive_timeout 90s;
|
keepalive_timeout 90s;
|
||||||
proxy_connect_timeout 90s;
|
proxy_connect_timeout 90s;
|
||||||
proxy_send_timeout 90s;
|
proxy_send_timeout 90s;
|
||||||
proxy_read_timeout 90s;
|
proxy_read_timeout 90s;
|
||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
gzip on;
|
gzip on;
|
||||||
proxy_ignore_client_abort off;
|
proxy_ignore_client_abort off;
|
||||||
@ -60,6 +60,9 @@ http {
|
|||||||
# Real IP Determination
|
# Real IP Determination
|
||||||
# Docker subnet:
|
# Docker subnet:
|
||||||
set_real_ip_from 172.0.0.0/8;
|
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:
|
# NPM generated CDN ip ranges:
|
||||||
include conf.d/include/ip_ranges.conf;
|
include conf.d/include/ip_ranges.conf;
|
||||||
# always put the following 2 lines after ip subnets:
|
# always put the following 2 lines after ip subnets:
|
||||||
|
Loading…
Reference in New Issue
Block a user