diff --git a/templates/haproxy.cfg.j2 b/templates/haproxy.cfg.j2 index b160a29..b0a747a 100644 --- a/templates/haproxy.cfg.j2 +++ b/templates/haproxy.cfg.j2 @@ -78,7 +78,6 @@ frontend http mode http option http-keep-alive - redirect scheme https code 301 if !{ ssl_fc } http-request add-header X-Forwarded-Proto https # HSTS (63072000 seconds) http-response set-header Strict-Transport-Security max-age=63072000 @@ -99,7 +98,7 @@ frontend http http-request deny if {{ srv.acl_name }} !{{ srv.acl_name }}_nets {% endif %} {% endfor %} - + redirect scheme https code 301 if !{ ssl_fc } {% if docker_swarm_cluster_portainer_install %} use_backend portainer_bck if portainer_srv {% endif %}