From 482fbf40039d693189b10240a5cf1004f8caedc3 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 30 Jun 2025 22:18:14 +0800 Subject: [PATCH] fix: update Redis host comment and increase default session timeout --- apps/maxkb/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/maxkb/conf.py b/apps/maxkb/conf.py index 0ea98f4f7..2430e120a 100644 --- a/apps/maxkb/conf.py +++ b/apps/maxkb/conf.py @@ -33,7 +33,7 @@ class Config(dict): # 语言 'LANGUAGE_CODE': 'zh-CN', "DEBUG": False, - # redis 目前先支持单机 哨兵的配置后期加上 + # redis host 'REDIS_HOST': '127.0.0.1', # 端口 'REDIS_PORT': 6379, @@ -102,7 +102,7 @@ class Config(dict): return self.get('LOG_LEVEL', 'DEBUG') def get_session_timeout(self): - return int(self.get('SESSION_TIMEOUT', 25200)) + return int(self.get('SESSION_TIMEOUT', 28800)) def __init__(self, *args): super().__init__(*args)