Merge pull request #709 from phekmat/patch-1

Add config for X-Forwarded-For trust
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-05-17 07:45:49 -04:00 committed by GitHub
commit c831359733

View file

@ -23,8 +23,8 @@ http {
set_real_ip_from {{ $cfg.ProxyRealIPCIDR }}; set_real_ip_from {{ $cfg.ProxyRealIPCIDR }};
real_ip_header proxy_protocol; real_ip_header proxy_protocol;
{{ else }} {{ else }}
set_real_ip_from {{ $cfg.ProxyRealIPCIDR }};
real_ip_header X-Forwarded-For; real_ip_header X-Forwarded-For;
set_real_ip_from 0.0.0.0/0;
{{ end }} {{ end }}
real_ip_recursive on; real_ip_recursive on;