diff --git a/docker/nginx.conf b/docker/nginx.conf index e387ad2c..747daa2c 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -58,4 +58,7 @@ http { error_log /var/log/nginx/realt-api_error.log; access_log /var/log/nginx/realt-api_access.log; } + real_ip_header X-Forwarded-For; + real_ip_recursive on; + set_real_ip_from 172.18.0.0/24; }