Add a missing endif.

This commit is contained in:
Andrea Dell'Amico 2023-10-08 01:39:16 +02:00
parent 7f73d9759e
commit 4c46b8f9a5
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 4 additions and 1 deletions

View File

@ -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