From c8d946878921e7d1ee7a37a06c53c17db88a837b Mon Sep 17 00:00:00 2001 From: Ivan Cvitkovic Date: Wed, 3 Apr 2024 16:48:34 -0700 Subject: [PATCH] Allow configuration of cookie domain by env var (#15) --- 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'