haproxy template: remove the port from the Host.
This commit is contained in:
parent
8a7939175e
commit
d9bfff2f06
|
|
@ -142,6 +142,8 @@ frontend http
|
||||||
option forwardfor
|
option forwardfor
|
||||||
# HSTS (63072000 seconds)
|
# HSTS (63072000 seconds)
|
||||||
http-response set-header Strict-Transport-Security max-age=63072000
|
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 %}
|
{% if docker_swarm_cluster_portainer_install %}
|
||||||
acl portainer_srv hdr(host) -i {{ docker_swarm_portainer_hostname }}
|
acl portainer_srv hdr(host) -i {{ docker_swarm_portainer_hostname }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue