added x-forward-ip support
This commit is contained in:
parent
0e8c531d0b
commit
b0fe6bb0ee
5 changed files with 16 additions and 2 deletions
4
templates/proxy.conf.j2
Normal file
4
templates/proxy.conf.j2
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{% for ip in nginx.real_ip_from %}
|
||||
set_real_ip_from {{ ip }};
|
||||
{% endfor %}
|
||||
real_ip_header X-Forwarded-For;
|
||||
Loading…
Add table
Add a link
Reference in a new issue