From 2b8437714c0caa85414baeffcfbd37c85c9c4f35 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Thu, 16 May 2024 14:13:31 +0530 Subject: [PATCH] dev: update session cookie age to environment variable --- apiserver/plane/settings/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/plane/settings/common.py b/apiserver/plane/settings/common.py index 642ece237..8eb1b4854 100644 --- a/apiserver/plane/settings/common.py +++ b/apiserver/plane/settings/common.py @@ -328,13 +328,13 @@ DATA_UPLOAD_MAX_MEMORY_SIZE = int(os.environ.get("FILE_SIZE_LIMIT", 5242880)) SESSION_COOKIE_SECURE = secure_origins SESSION_COOKIE_HTTPONLY = True SESSION_ENGINE = "plane.db.models.session" -SESSION_COOKIE_AGE = 604800 +SESSION_COOKIE_AGE = os.environ.get("SESSION_COOKIE_AGE", 604800) SESSION_COOKIE_NAME = "plane-session-id" SESSION_COOKIE_DOMAIN = os.environ.get("COOKIE_DOMAIN", None) # Admin Cookie ADMIN_SESSION_COOKIE_NAME = "plane-admin-session-id" -ADMIN_SESSION_COOKIE_AGE = 3600 +ADMIN_SESSION_COOKIE_AGE = os.environ.get("ADMIN_SESSION_COOKIE_AGE", 3600) # CSRF cookies CSRF_COOKIE_SECURE = secure_origins