Skip to content

Commit

Permalink
Merge pull request #709 from phekmat/patch-1
Browse files Browse the repository at this point in the history
Add config for X-Forwarded-For trust
  • Loading branch information
aledbf authored May 17, 2017
2 parents 49e490e + dd894f0 commit c831359
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 @@ -23,8 +23,8 @@ http {
set_real_ip_from {{ $cfg.ProxyRealIPCIDR }};
real_ip_header proxy_protocol;
{{ else }}
set_real_ip_from {{ $cfg.ProxyRealIPCIDR }};
real_ip_header X-Forwarded-For;
set_real_ip_from 0.0.0.0/0;
{{ end }}

real_ip_recursive on;
Expand Down

0 comments on commit c831359

Please sign in to comment.