fix: update Redis host comment and increase default session timeout
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run

This commit is contained in:
CaptainB 2025-06-30 22:18:14 +08:00
parent 05f4eb532e
commit 482fbf4003

View File

@ -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)