From d85b3f82981cc5a1162e8558f394e124e780c9c6 Mon Sep 17 00:00:00 2001 From: Jae Kim Date: Thu, 23 Mar 2017 16:32:31 -0700 Subject: [PATCH] Added default options of ngx_http_realip_module --- start_esp/nginx-auto.conf.template | 5 +++++ 1 file changed, 5 insertions(+) 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};