From 4c46b8f9a55c46c60c024d588196836a0a63bad6 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sun, 8 Oct 2023 01:39:16 +0200 Subject: [PATCH] Add a missing endif. --- templates/haproxy.cfg.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/haproxy.cfg.j2 b/templates/haproxy.cfg.j2 index f3da2e2..32f0fc8 100644 --- a/templates/haproxy.cfg.j2 +++ b/templates/haproxy.cfg.j2 @@ -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