File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
- # Generated IP Ranges for safe real IP determination
2
- include conf.d/include/ip_ranges.conf;
3
-
4
1
# Healthcheck Host which proxies to the Manager,
5
2
# thus the healthcheck ensures both services are running
6
3
server {
Original file line number Diff line number Diff line change @@ -59,6 +59,15 @@ http {
59
59
default http;
60
60
}
61
61
62
+ # Real IP Determination
63
+ # Docker subnet:
64
+ set_real_ip_from 172.0.0.0/8;
65
+ # NPM generated CDN ip ranges:
66
+ include conf.d/include/ip_ranges.conf;
67
+ # always put the following 2 lines after ip subnets:
68
+ real_ip_header X-Forwarded-For;
69
+ real_ip_recursive on ;
70
+
62
71
# Files generated by NPM
63
72
include /etc/nginx/conf.d/*.conf;
64
73
include /data/nginx/proxy_host/*.conf;
You can’t perform that action at this time.
0 commit comments