fix of internal

This commit is contained in:
hubaceks
2026-05-02 22:08:54 +02:00
parent f9ae17cdd4
commit c3354c0cec

View File

@@ -5,9 +5,10 @@
{% if auth %} {% if auth %}
import common_auth import common_auth
{% endif %} {% endif %}
{% if internal %} {% if internal %}
@internal { @internal {
remote_ip {% for range in internal_ranges %}{{ range }}{% if not loop.last %} {% endif %}{% endfor %} remote_ip{% for item in internal_ranges %} {{ item }}{% endfor %}
} }
handle @internal { handle @internal {
@@ -31,7 +32,9 @@
handle { handle {
respond "Forbidden" 403 respond "Forbidden" 403
} }
{% else %} {% else %}
{% if reverse_proxy_block %} {% if reverse_proxy_block %}
reverse_proxy {{ backend }} { reverse_proxy {{ backend }} {
{% if real_ip %} {% if real_ip %}
@@ -47,5 +50,6 @@
{% else %} {% else %}
reverse_proxy {{ backend }} reverse_proxy {{ backend }}
{% endif %} {% endif %}
{% endif %} {% endif %}
} }