feat: add token expiration time environment variable

This commit is contained in:
AQARA\xiufeng.he-a0968
2026-01-21 17:13:40 +08:00
committed by xuwei-fit2cloud
parent 4e3a843f85
commit cba9e5f00d
2 changed files with 4 additions and 0 deletions

View File

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

View File

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