diff --git a/templates/haproxy.cfg.j2 b/templates/haproxy.cfg.j2 index e76e3f1..21445fd 100644 --- a/templates/haproxy.cfg.j2 +++ b/templates/haproxy.cfg.j2 @@ -142,6 +142,7 @@ frontend http option forwardfor # HSTS (63072000 seconds) http-response set-header Strict-Transport-Security max-age=63072000 + http-request set-header X-Forwarded-Proto https if { ssl_fc } # Remove the port from the host endpoint. http-request replace-value Host (.*):.* \1 {% if docker_swarm_cluster_portainer_install %}