bunkerweb 1.4.0
This commit is contained in:
16
core/realip/confs/server-http/real-ip.conf
Normal file
16
core/realip/confs/server-http/real-ip.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
{% if USE_REAL_IP == "yes" +%}
|
||||
{% for element in read_lines("/opt/bunkerweb/cache/realip/combined.list") +%}
|
||||
set_real_ip_from {{ element }};
|
||||
{% endfor +%}
|
||||
{% if REAL_IP_FROM != "" %}
|
||||
{% for element in REAL_IP_FROM.split(" ") +%}
|
||||
set_real_ip_from {{ element }};
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
real_ip_header {{ REAL_IP_HEADER }};
|
||||
{% if REAL_IP_RECURSIVE == "yes" +%}
|
||||
real_ip_recursive on;
|
||||
{% else +%}
|
||||
real_ip_recursive off;
|
||||
{% endif +%}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user