From 37110df2deee9476d0198a6e7306ff6f9b37911c Mon Sep 17 00:00:00 2001 From: Weves Date: Fri, 9 Feb 2024 21:14:32 -0800 Subject: [PATCH] Increase session timeout default --- backend/danswer/configs/app_configs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/danswer/configs/app_configs.py b/backend/danswer/configs/app_configs.py index 78403010b..d0159c432 100644 --- a/backend/danswer/configs/app_configs.py +++ b/backend/danswer/configs/app_configs.py @@ -46,8 +46,8 @@ MASK_CREDENTIAL_PREFIX = ( SECRET = os.environ.get("SECRET", "") SESSION_EXPIRE_TIME_SECONDS = int( - os.environ.get("SESSION_EXPIRE_TIME_SECONDS") or 86400 -) # 1 day + os.environ.get("SESSION_EXPIRE_TIME_SECONDS") or 86400 * 7 +) # 7 days # set `VALID_EMAIL_DOMAINS` to a comma seperated list of domains in order to # restrict access to Danswer to only users with emails from those domains.