configure reverse proxy header for proper TLS
All checks were successful
Build and Deploy Staging / build (push) Successful in 47s
Build and Deploy Staging / deploy (push) Successful in 7s

This commit is contained in:
Tobias Brunner 2025-03-21 15:12:58 +01:00
parent c6c078c5c2
commit fdfed693ff
No known key found for this signature in database

View file

@ -201,3 +201,6 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
# TODO
TIME_ZONE = "UTC"
if SERVALA_ENVIRONMENT in ("staging", "production"):
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")