Skip to content

Commit

Permalink
Fix remote address
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Sep 29, 2017
1 parent b1b75f9 commit f549e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f549e03

Please sign in to comment.