From 31ea868ddcb879d81a9008547ae282de38f777b1 Mon Sep 17 00:00:00 2001 From: Jascha Urbach Date: Sat, 19 Nov 2022 20:40:36 +0100 Subject: [PATCH] Update to actual READ the file... --- bookwyrm/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index 6c0b2d176..5379a16ff 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -364,6 +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) SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")