From 33516af243c0d2ececab080c8a7a263134d4cba3 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler Date: Tue, 25 Jun 2024 13:34:17 +0200 Subject: [PATCH] do not put real_ip_recursive within the for-loop (cherry picked from commit 5be25b58873624b973b4356cfe10e299450ad605) --- core/nginx/conf/nginx.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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