Merge pull request #1946 from bookwyrm-social/use-https-defualt

Sets default USE_HTTPS value based on debug
This commit is contained in:
Mouse Reeve
2022-02-17 08:30:49 -08:00
committed by GitHub

View File

@ -67,7 +67,7 @@ SECRET_KEY = env("SECRET_KEY")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env.bool("DEBUG", True)
USE_HTTPS = env.bool("USE_HTTPS", False)
USE_HTTPS = env.bool("USE_HTTPS", not DEBUG)
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", ["*"])