diff --git a/start_esp/nginx-auto.conf.template b/start_esp/nginx-auto.conf.template index b74e1c0..a87ef14 100644 --- a/start_esp/nginx-auto.conf.template +++ b/start_esp/nginx-auto.conf.template @@ -48,6 +48,11 @@ http { % endif % endfor + set_real_ip_from 0.0.0.0/1; + set_real_ip_from 0::/1; + real_ip_header X-Forwarded-For; + real_ip_recursive on; + server { server_name ${ingress.host};