Merge pull request 'aggiunt header forwarded proto https' (!3) from marco.procaccini/ansible-role-docker-swarm:master into master

Reviewed-on: #3
This commit is contained in:
Andrea Dell'Amico 2026-02-17 12:50:41 +01:00
commit d02026ee06
1 changed files with 1 additions and 0 deletions

View File

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