added x-forward-ip support

This commit is contained in:
nd 2019-05-21 19:50:39 +02:00
parent 0e8c531d0b
commit b0fe6bb0ee
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
5 changed files with 16 additions and 2 deletions

4
templates/proxy.conf.j2 Normal file
View file

@ -0,0 +1,4 @@
{% for ip in nginx.real_ip_from %}
set_real_ip_from {{ ip }};
{% endfor %}
real_ip_header X-Forwarded-For;