haproxy template: remove the port from the Host.

This commit is contained in:
Andrea Dell'Amico 2026-01-27 16:50:48 +01:00
parent 8a7939175e
commit d9bfff2f06
Signed by untrusted user: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 0 deletions

View File

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