diff --git a/core/nginx/conf/nginx.conf b/core/nginx/conf/nginx.conf index 487a5ef5..97a32113 100644 --- a/core/nginx/conf/nginx.conf +++ b/core/nginx/conf/nginx.conf @@ -26,9 +26,10 @@ http { real_ip_header proxy_protocol; {% endif %} - {% if REAL_IP_FROM %}{% for from_ip in REAL_IP_FROM.split(',') %} - set_real_ip_from {{ from_ip }}; + {% if REAL_IP_FROM %} real_ip_recursive on; + {% for from_ip in REAL_IP_FROM.split(',') %} + set_real_ip_from {{ from_ip }}; {% endfor %}{% endif %} # Header maps