From f4320ae527f11739c2a329688d20e54f995c9449 Mon Sep 17 00:00:00 2001 From: "AQARA\\xiufeng.he-a0968" Date: Wed, 21 Jan 2026 17:13:40 +0800 Subject: [PATCH] feat: add token expiration time environment variable --- installer/install.conf | 2 ++ installer/sqlbot/templates/sqlbot.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/installer/install.conf b/installer/install.conf index fb525a1d..6cf9c3c1 100644 --- a/installer/install.conf +++ b/installer/install.conf @@ -32,3 +32,5 @@ SQLBOT_LOG_LEVEL="INFO" SQLBOT_CACHE_TYPE="memory" ## MCP 图片存储路径 SQLBOT_SERVER_IMAGE_HOST=http://YOUR_SERVER_IP:MCP_PORT/images/ +##Token过期时间: 60 minutes * 24 hours * 8 days = 11520 minutes +SQLBOT_ACCESS_TOKEN_EXPIRE_MINUTES=11520 diff --git a/installer/sqlbot/templates/sqlbot.conf b/installer/sqlbot/templates/sqlbot.conf index 35870087..77281fa3 100644 --- a/installer/sqlbot/templates/sqlbot.conf +++ b/installer/sqlbot/templates/sqlbot.conf @@ -17,3 +17,5 @@ POSTGRES_USER=${SQLBOT_DB_USER} POSTGRES_PASSWORD=${SQLBOT_DB_PASSWORD} SERVER_IMAGE_HOST=${SQLBOT_SERVER_IMAGE_HOST} + +ACCESS_TOKEN_EXPIRE_MINUTES=${SQLBOT_ACCESS_TOKEN_EXPIRE_MINUTES}