Use forwarded header to get real IP
This commit is contained in:
parent
a5e273cae6
commit
a1e99c347d
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,9 @@ http {
|
|||
access_log /dev/stdout;
|
||||
access_log /var/log/nginx/access.log;
|
||||
|
||||
set_real_ip_from 0.0.0.0/0;
|
||||
real_ip_header X-Forwarded-For;
|
||||
|
||||
sendfile on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
|
Loading…
Reference in a new issue