diff --git a/nginx-php.conf b/nginx-php.conf index 8639143..b7d5b69 100644 --- a/nginx-php.conf +++ b/nginx-php.conf @@ -9,6 +9,10 @@ server { index index.html index.htm index.php; error_page 404 /404.html; + real_ip_header X-Forwarded-For; + real_ip_recursive on; + set_real_ip_from 0.0.0.0/0; + location /trigger-ci.json { proxy_pass http://trigger-ci; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; diff --git a/nginx.conf b/nginx.conf index 02c534a..05c6bd9 100644 --- a/nginx.conf +++ b/nginx.conf @@ -8,6 +8,10 @@ server { root /var/www/html; error_page 404 /404.html; + real_ip_header X-Forwarded-For; + real_ip_recursive on; + set_real_ip_from 0.0.0.0/0; + location /trigger-ci.json { proxy_pass http://trigger-ci; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;