1
0
Fork 0

set HTTP_X_FORWARDED_PROTO in .env

This fixes #2397.

The description in .env is whith a warning and a link to the official documentation about what this setting is doing if set to true.
This commit is contained in:
Jascha Ezra Urbach 2022-11-19 17:54:44 +01:00
parent c5fb710f29
commit 238a1b0e88
No known key found for this signature in database
GPG key ID: A43A844B114F9B08
2 changed files with 10 additions and 0 deletions

View file

@ -364,3 +364,6 @@ 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 = ("HTTP_X_FORWARDED_PROTO", "https")