fix of internal
This commit is contained in:
@@ -5,9 +5,10 @@
|
||||
{% if auth %}
|
||||
import common_auth
|
||||
{% endif %}
|
||||
|
||||
{% if 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 {
|
||||
@@ -31,7 +32,9 @@
|
||||
handle {
|
||||
respond "Forbidden" 403
|
||||
}
|
||||
|
||||
{% else %}
|
||||
|
||||
{% if reverse_proxy_block %}
|
||||
reverse_proxy {{ backend }} {
|
||||
{% if real_ip %}
|
||||
@@ -47,5 +50,6 @@
|
||||
{% else %}
|
||||
reverse_proxy {{ backend }}
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
}
|
||||
Reference in New Issue
Block a user