From bf72c217c9ac7c98f927d8046f010d898b9a8e33 Mon Sep 17 00:00:00 2001 From: Davide Arcuri Date: Mon, 2 Sep 2024 08:17:54 +0200 Subject: [PATCH] https support in external env --- config/settings/base.py | 4 ++++ orochi/templates/base.html | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/settings/base.py b/config/settings/base.py index 5be8adc5..5fe9d043 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -355,3 +355,7 @@ LOCAL_UPLOAD_PATH = env("LOCAL_UPLOAD_PATH") # Regipy plugins REGIPY_PLUGINS = env.list("REGIPY_PLUGINS") + +# HTTPS +SECURE_PROXY_SSL_HEADER = env("HTTP_X_FORWARDED_PROTO", "http") +SECURE_SSL_REDIRECT = env.bool("SECURE_SSL_REDIRECT", False) diff --git a/orochi/templates/base.html b/orochi/templates/base.html index f6c711d1..e20cfd1b 100644 --- a/orochi/templates/base.html +++ b/orochi/templates/base.html @@ -202,8 +202,7 @@ - +