From 09a3fc6194e137af1a4924ecfa0e4dd7a72fd9c1 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 6 Nov 2020 18:05:25 +0100 Subject: [PATCH] Use hdr(host) in the portainer acl. --- templates/haproxy.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/haproxy.cfg.j2 b/templates/haproxy.cfg.j2 index 87031a8..43c4443 100644 --- a/templates/haproxy.cfg.j2 +++ b/templates/haproxy.cfg.j2 @@ -83,7 +83,7 @@ frontend http # HSTS (63072000 seconds) http-response set-header Strict-Transport-Security max-age=63072000 {% if docker_swarm_cluster_portainer_install %} - acl portainer_srv hdr_dom(host) -i {{ docker_swarm_portainer_hostname }} + acl portainer_srv hdr(host) -i {{ docker_swarm_portainer_hostname }} {% endif %} {% for srv in docker_swarm_haproxy_additional_services %} acl {{ srv.acl_name }} {{ srv.acl_rule }}