PROD5 for Micinas
This commit is contained in:
@@ -5,6 +5,33 @@
|
||||
{% if auth %}
|
||||
import common_auth
|
||||
{% endif %}
|
||||
{% if internal %}
|
||||
@internal {
|
||||
remote_ip {% for range in internal_ranges %}{{ range }}{% if not loop.last %} {% endif %}{% endfor %}
|
||||
}
|
||||
|
||||
handle @internal {
|
||||
{% if reverse_proxy_block %}
|
||||
reverse_proxy {{ backend }} {
|
||||
{% if real_ip %}
|
||||
header_up X-Real-IP {remote_host}
|
||||
{% endif %}
|
||||
{% if health_uri %}
|
||||
health_uri {{ health_uri }}
|
||||
{% endif %}
|
||||
{% if health_interval %}
|
||||
health_interval {{ health_interval }}
|
||||
{% endif %}
|
||||
}
|
||||
{% else %}
|
||||
reverse_proxy {{ backend }}
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
handle {
|
||||
respond "Forbidden" 403
|
||||
}
|
||||
{% else %}
|
||||
{% if reverse_proxy_block %}
|
||||
reverse_proxy {{ backend }} {
|
||||
{% if real_ip %}
|
||||
@@ -20,4 +47,5 @@
|
||||
{% else %}
|
||||
reverse_proxy {{ backend }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
}
|
||||
Reference in New Issue
Block a user