Skip to content

Commit cba9e5f

Browse files
andystenhexuwei-fit2cloud
authored andcommitted
feat: add token expiration time environment variable
1 parent 4e3a843 commit cba9e5f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

installer/install.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ SQLBOT_LOG_LEVEL="INFO"
3232
SQLBOT_CACHE_TYPE="memory"
3333
## MCP 图片存储路径
3434
SQLBOT_SERVER_IMAGE_HOST=http://YOUR_SERVER_IP:MCP_PORT/images/
35+
##Token过期时间: 60 minutes * 24 hours * 8 days = 11520 minutes
36+
SQLBOT_ACCESS_TOKEN_EXPIRE_MINUTES=11520

installer/sqlbot/templates/sqlbot.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ POSTGRES_USER=${SQLBOT_DB_USER}
1717
POSTGRES_PASSWORD=${SQLBOT_DB_PASSWORD}
1818

1919
SERVER_IMAGE_HOST=${SQLBOT_SERVER_IMAGE_HOST}
20+
21+
ACCESS_TOKEN_EXPIRE_MINUTES=${SQLBOT_ACCESS_TOKEN_EXPIRE_MINUTES}

0 commit comments

Comments
 (0)