configure reverse proxy header for proper TLS
This commit is contained in:
parent
c6c078c5c2
commit
fdfed693ff
1 changed files with 3 additions and 0 deletions
|
@ -201,3 +201,6 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
TIME_ZONE = "UTC"
|
TIME_ZONE = "UTC"
|
||||||
|
|
||||||
|
if SERVALA_ENVIRONMENT in ("staging", "production"):
|
||||||
|
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue