From d593a3a50317b4b9b3ec2bfdefe45360113b40d9 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 15 Feb 2022 13:15:04 -0800 Subject: [PATCH] Sets default USE_HTTPS value based on debug --- bookwyrm/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index 41e159226..520b424e8 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -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", ["*"])