From 3c1b38ed2c4667ee94b4699fd959d1476f9462dc Mon Sep 17 00:00:00 2001 From: Jascha Urbach Date: Sun, 20 Nov 2022 17:47:26 +0100 Subject: [PATCH] one should import what one declares... ... andn not what one thinks was declared^^ --- bookwyrm/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index 5379a16ff..45a620847 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -364,7 +364,7 @@ OTEL_EXPORTER_OTLP_HEADERS = env("OTEL_EXPORTER_OTLP_HEADERS", None) OTEL_SERVICE_NAME = env("OTEL_SERVICE_NAME", None) TWO_FACTOR_LOGIN_MAX_SECONDS = 60 -if HTTP_X_FORWARDED_PROTO: -SECURE_PROXY_SSL_HEADER = env.bool("SECURE_PROXY_SSL_HEADER", false) +HTTP_X_FORWARDED_PROTO = env.bool("SECURE_PROXY_SSL_HEADER", false) +if HTTP_X_FORWARDED_PROTO: SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")