Merge pull request #709 from phekmat/patch-1
Add config for X-Forwarded-For trust
This commit is contained in:
commit
c831359733
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue