Skip to content

Commit

Permalink
Reduce session time from one week to 48h (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
lloesche authored Sep 5, 2024
1 parent c4c3164 commit 09d2605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fixbackend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(",")
)
Expand Down

0 comments on commit 09d2605

Please sign in to comment.