conf: realip module
This commit is contained in:
5
angie/autoconf/http-realip.conf.j2
Normal file
5
angie/autoconf/http-realip.conf.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
{%- set hdr = j2cfg.headers.real_ip_from or 'off' -%}
|
||||
{%- if hdr != 'off' %}
|
||||
real_ip_header {{ hdr | http_header }};
|
||||
{% include 'realip-set-from.j2inc' %}
|
||||
{%- endif %}
|
Reference in New Issue
Block a user