From 7002e68289c81d21e172b869fbb36db63d67acc0 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Fri, 29 Sep 2017 12:11:35 -0300 Subject: [PATCH] Fix remote address --- controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl b/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl index 59c247352..c827d994f 100644 --- a/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl +++ b/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl @@ -155,7 +155,7 @@ http { # Trust HTTP X-Forwarded-* Headers, but use direct values if they're missing. map {{ buildForwardedFor $cfg.ForwardedForHeader }} $the_real_ip { # Get IP address from X-Forwarded-For HTTP header - default {{ buildForwardedFor $cfg.ForwardedForHeader }}; + default $remote_addr; '' $realip_remote_addr; }