From d9bfff2f0693a81721e1a612c9fd55ebcd836b7c Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 27 Jan 2026 16:50:48 +0100 Subject: [PATCH] haproxy template: remove the port from the Host. --- templates/haproxy.cfg.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/haproxy.cfg.j2 b/templates/haproxy.cfg.j2 index 0e73e8e..453f8f3 100644 --- a/templates/haproxy.cfg.j2 +++ b/templates/haproxy.cfg.j2 @@ -142,6 +142,8 @@ frontend http option forwardfor # HSTS (63072000 seconds) http-response set-header Strict-Transport-Security max-age=63072000 + # Remove the port from the host endpoint. + http-request replace-value Host (.*):.* \1 {% if docker_swarm_cluster_portainer_install %} acl portainer_srv hdr(host) -i {{ docker_swarm_portainer_hostname }} {% endif %}