Add a missing endif.
This commit is contained in:
parent
7f73d9759e
commit
4c46b8f9a5
|
@ -74,6 +74,7 @@ listen local_stats
|
|||
stats realm HAProxy\ Statistics
|
||||
|
||||
{% if docker_swarm_haproxy_plain_http_listener %}
|
||||
|
||||
frontend http_{{ docker_swarm_haproxy_plain_http_port }}
|
||||
bind *:{{ docker_swarm_haproxy_plain_http_port }} {% if docker_swarm_haproxy_installation_type == 'global' %}accept-proxy{% endif %}
|
||||
mode http
|
||||
|
@ -90,9 +91,10 @@ frontend http_{{ docker_swarm_haproxy_plain_http_port }}
|
|||
http-request deny if {{ srv.acl_name }} !{{ srv.acl_name }}_nets
|
||||
{% endif %}
|
||||
|
||||
use_backend {{ srv.acl_name }}_bck if {{ srv.acl_name }} {%if srv.acl_path_rule is defined %}{{ srv.acl_name }}_path
|
||||
use_backend {{ srv.acl_name }}_bck if {{ srv.acl_name }} {%if srv.acl_path_rule is defined %}{{ srv.acl_name }}_path {% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
frontend http
|
||||
|
@ -254,6 +256,7 @@ backend {{ srv.acl_name }}_bck
|
|||
{% endfor %}
|
||||
|
||||
{% if docker_swarm_haproxy_plain_http_listener %}
|
||||
|
||||
{% for srv in docker_swarm_haproxy_plain_http_services %}
|
||||
backend {{ srv.acl_name }}_bck
|
||||
mode http
|
||||
|
|
Loading…
Reference in New Issue