Skip to content
Snippets Groups Projects
Verified Commit 1b81731a authored by nd's avatar nd
Browse files

add config option for real-ip header

parent 2032a428
No related branches found
No related tags found
No related merge requests found
nginx:
add_headers: []
real_ip_header: "X-Forwarded-For"
real_ip_from:
"127.0.0.1": {}
"::1": {}
......
{% for ip in nginx.real_ip_from %}
set_real_ip_from {{ ip }};
{% endfor %}
real_ip_header X-Forwarded-For;
real_ip_header {{ nginx.real_ip_header }};
real_ip_recursive on;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment