From 1c340e8efe3f67af5e995c14ad1d4a6f7bf23b1f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org>
Date: Mon, 10 Apr 2023 23:04:29 +0200
Subject: [PATCH] check for forwarded HTTPS

---
 rybicka/settings/base.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/rybicka/settings/base.py b/rybicka/settings/base.py
index 83b43c6..f27cfaf 100644
--- a/rybicka/settings/base.py
+++ b/rybicka/settings/base.py
@@ -35,6 +35,10 @@ ALLOWED_HOSTS = []
 
 STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
 
+# Server
+
+SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
+
 # Application definition
 
 INSTALLED_APPS = [
-- 
GitLab