Apologies for my lack of coding skills

This commit is contained in:
Jascha Urbach 2022-11-20 17:57:03 +01:00
parent 3c1b38ed2c
commit 484484fd4b
No known key found for this signature in database
GPG key ID: A43A844B114F9B08
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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")