fixed x-forwarded-for

This commit is contained in:
nd 2019-07-14 14:51:19 +02:00
parent 977ba57da9
commit 773f2339e8
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 8 additions and 7 deletions

View file

@ -2,3 +2,4 @@
set_real_ip_from {{ ip }};
{% endfor %}
real_ip_header X-Forwarded-For;
real_ip_recursive on;

View file

@ -34,7 +34,7 @@ server {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl $https;
proxy_set_header X-Url-Scheme $scheme;