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}