fix of internal
This commit is contained in:
@@ -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 %}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user