From 09d2605cb6cdafef03e1acb01715dd35f62447aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=B6sche?= Date: Thu, 5 Sep 2024 13:46:58 +0200 Subject: [PATCH] Reduce session time from one week to 48h (#615) --- fixbackend/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fixbackend/config.py b/fixbackend/config.py index 791af73d..422a191c 100644 --- a/fixbackend/config.py +++ b/fixbackend/config.py @@ -139,8 +139,8 @@ def parse_args(argv: Optional[Sequence[str]] = None) -> Namespace: parser.add_argument("--cdn-bucket", default=os.environ.get("FIXUI_CDN_BUCKET", "fix-ui")) parser.add_argument("--fixui-sha", default=os.environ.get("FIXUI_SHA", "edge")) parser.add_argument("--static-assets", type=Path, default=os.environ.get("STATIC_ASSETS")) - one_week = 3600 * 24 * 7 - parser.add_argument("--session-ttl", type=int, default=int(os.environ.get("SESSION_TTL", one_week))) + two_days = 3600 * 24 * 2 + parser.add_argument("--session-ttl", type=int, default=int(os.environ.get("SESSION_TTL", two_days))) parser.add_argument( "--available-db-server", nargs="+", default=os.environ.get("AVAILABLE_DB_SERVER", "").split(",") )