fix: add X-Forwarded-Proto header to HTTPS frontend for backend connection awareness

This commit is contained in:
2026-03-22 22:51:43 +00:00
parent 2d8ae617c6
commit 7dab63b83c

View File

@@ -59,7 +59,9 @@ frontend https_frontend
mode http mode http
option httplog option httplog
option forwardfor option forwardfor
# Tell backends the original connection was HTTPS (TLS terminates here)
http-request set-header X-Forwarded-Proto https
# Security headers # Security headers
http-response set-header Strict-Transport-Security "max-age=31536000; includeSubDomains" http-response set-header Strict-Transport-Security "max-age=31536000; includeSubDomains"
http-response set-header X-Frame-Options "SAMEORIGIN" http-response set-header X-Frame-Options "SAMEORIGIN"