From 8255eeaed79761c4c9702f44d74a0fcbb70e5f49 Mon Sep 17 00:00:00 2001 From: Ivan Cvitkovic Date: Thu, 21 Dec 2023 09:43:04 -0800 Subject: [PATCH] Allow configuration of cookie domain by env var --- confidential_backend/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/confidential_backend/config.py b/confidential_backend/config.py index 94149592..097ef95c 100644 --- a/confidential_backend/config.py +++ b/confidential_backend/config.py @@ -14,6 +14,7 @@ SESSION_TYPE = os.getenv("SESSION_TYPE", 'redis') SESSION_REDIS = redis.from_url(os.getenv("SESSION_REDIS", "redis://127.0.0.1:6379")) +SESSION_COOKIE_DOMAIN = os.getenv("SESSION_COOKIE_DOMAIN") SESSION_COOKIE_SAMESITE = os.getenv("SESSION_COOKIE_SAMESITE", 'Lax') SESSION_COOKIE_SECURE = os.getenv("SESSION_COOKIE_SECURE", 'false').lower() == 'true'