From 9d84d6bf252e54725bf5adb8961a49eb760dc611 Mon Sep 17 00:00:00 2001 From: Victor_Jay Date: Sun, 31 May 2026 00:51:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=B4=E6=97=B6=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E8=B6=85=E6=97=B6=E4=BB=8E=2024=20=E5=B0=8F=E6=97=B6=E7=BC=A9?= =?UTF-8?q?=E7=9F=AD=E4=B8=BA=202=20=E5=B0=8F=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - idle_timeout: 1440 → 120 分钟 - 前端已有 10 分钟心跳续期机制,写文章等长时间操作不会丢失会话 --- config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.yaml b/config.yaml index 6f6a25c..6725bb1 100644 --- a/config.yaml +++ b/config.yaml @@ -16,7 +16,7 @@ database: # 会话配置(服务端 Session,滑动窗口续期) # 每次请求自动续期,解决"记住我"掉线问题 session: - idle_timeout: 1440 # 不记住我:空闲超时(分钟),默认 1440 = 24 小时 + idle_timeout: 120 # 不记住我:空闲超时(分钟),120 = 2 小时 remember_timeout: 43200 # 记住我:空闲超时(分钟),默认 43200 = 30 天 cleanup_interval: 300 # 后台清理过期会话间隔(秒),默认 300