From 484484fd4b5280c33ffdceb30aaa66f875ad408b Mon Sep 17 00:00:00 2001 From: Jascha Urbach Date: Sun, 20 Nov 2022 17:57:03 +0100 Subject: [PATCH] Apologies for my lack of coding skills --- .env.example | 2 +- bookwyrm/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 319e03eda..bbd825a9a 100644 --- a/.env.example +++ b/.env.example @@ -110,7 +110,7 @@ OTEL_EXPORTER_OTLP_HEADERS= OTEL_SERVICE_NAME= # Set HTTP_X_FORWARDED_PROTO ONLY to true if you know what you are doing. -# Only use it if your proxy is "swalloing" if the original request was made +# Only use it if your proxy is "swallowing" if the original request was made # via https. Please refer to the Django-Documentation and assess the risks # for your instance: # https://docs.djangoproject.com/en/3.2/ref/settings/#secure-proxy-ssl-header diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index 45a620847..ed0f57839 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -365,6 +365,6 @@ OTEL_SERVICE_NAME = env("OTEL_SERVICE_NAME", None) TWO_FACTOR_LOGIN_MAX_SECONDS = 60 -HTTP_X_FORWARDED_PROTO = 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")