Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ EXPOSE 3000 8000 8001 5432

# Add health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8000 || exit 1
CMD python3 -c "import os, urllib.request; urllib.request.urlopen(f'http://localhost:8000/{os.environ.get(\"CONTEXT_PATH\", \"\")}', timeout=3)" || exit 1

ENTRYPOINT ["sh", "start.sh"]
2 changes: 2 additions & 0 deletions installer/install.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ SQLBOT_CACHE_TYPE="memory"
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
## 上下文路径
SQLBOT_CONTEXT_PATH=
2 changes: 2 additions & 0 deletions installer/sqlbot/templates/sqlbot.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ POSTGRES_PASSWORD=${SQLBOT_DB_PASSWORD}
SERVER_IMAGE_HOST=${SQLBOT_SERVER_IMAGE_HOST}

ACCESS_TOKEN_EXPIRE_MINUTES=${SQLBOT_ACCESS_TOKEN_EXPIRE_MINUTES}

CONTEXT_PATH=${SQLBOT_CONTEXT_PATH}
Loading