fix: add X-Forwarded-Proto header to HTTPS frontend for backend connection awareness
This commit is contained in:
@@ -59,6 +59,8 @@ 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"
|
||||||
|
|||||||
Reference in New Issue
Block a user