16 lines
452 B
Plaintext
16 lines
452 B
Plaintext
{% 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 %} |