Skip to content

Commit 482fbf4

Browse files
committed
fix: update Redis host comment and increase default session timeout
1 parent 05f4eb5 commit 482fbf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/maxkb/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Config(dict):
3333
# 语言
3434
'LANGUAGE_CODE': 'zh-CN',
3535
"DEBUG": False,
36-
# redis 目前先支持单机 哨兵的配置后期加上
36+
# redis host
3737
'REDIS_HOST': '127.0.0.1',
3838
# 端口
3939
'REDIS_PORT': 6379,
@@ -102,7 +102,7 @@ def get_log_level(self):
102102
return self.get('LOG_LEVEL', 'DEBUG')
103103

104104
def get_session_timeout(self):
105-
return int(self.get('SESSION_TIMEOUT', 25200))
105+
return int(self.get('SESSION_TIMEOUT', 28800))
106106

107107
def __init__(self, *args):
108108
super().__init__(*args)

0 commit comments

Comments
 (0)