feat(base): move setting SECURE_SSL_REDIRECT = True to etc/settings

ref: #248 #390
This commit is contained in:
2024-11-20 16:41:37 +09:30
parent c6a1790b7d
commit 2e6db419b2
2 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,7 @@ SECURE_HSTS_SECONDS = 86400
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_HSTS_PRELOAD = True
# SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") # ToDo: https://docs.djangoproject.com/en/dev/ref/settings/#secure-proxy-ssl-header
SECURE_SSL_REDIRECT = True
# SECURE_SSL_REDIRECT = True # Commented out so tests pass
# SECURE_SSL_HOST = # ToDo: https://docs.djangoproject.com/en/dev/ref/settings/#secure-ssl-host
SESSION_COOKIE_SECURE = True
# USE_X_FORWARDED_HOST = True # ToDo: https://docs.djangoproject.com/en/dev/ref/settings/#use-x-forwarded-host

View File

@ -25,3 +25,5 @@ DATABASES = {
#
#
# CELERY_BROKER_URL = 'amqp://<username>:<password>@<host>:<port>/[<message host>]' # 'amqp://' is the connection protocol
SECURE_SSL_REDIRECT = True