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-
41# Healthcheck Host which proxies to the Manager,
52# thus the healthcheck ensures both services are running
63server {
Original file line number Diff line number Diff line change @@ -59,6 +59,15 @@ http {
5959 default http ;
6060 }
6161
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+
6271 # Files generated by NPM
6372 include /etc/nginx/conf.d/*.conf;
6473 include /data/nginx/proxy_host/*.conf;
You can’t perform that action at this time.
0 commit comments