配置StarFireAPI部署:基于上游v0.1.64重新应用自定义配置
主要修改: - docker-compose.yml: 使用 starfireapi:latest 镜像,端口6580,外部Redis配置 - .env.example: 配置外部Redis (172.18.0.2:6379),默认端口6580 - 新增 DEPLOY_SERVER.md: 完整的服务器部署文档 技术细节: - 禁用内置Redis服务,使用外部Redis (172.18.0.2:6379) - 移除Redis的depends_on依赖 - 保留上游v0.1.64的所有新特性(SSE流式响应修复、调度器优化等) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
BIND_HOST=0.0.0.0
|
||||
|
||||
# Server port (exposed on host)
|
||||
SERVER_PORT=8080
|
||||
SERVER_PORT=6580
|
||||
|
||||
# Server mode: release or debug
|
||||
SERVER_MODE=release
|
||||
@@ -35,10 +35,12 @@ POSTGRES_PASSWORD=change_this_secure_password
|
||||
POSTGRES_DB=sub2api
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Redis Configuration
|
||||
# Redis Configuration (External Redis)
|
||||
# -----------------------------------------------------------------------------
|
||||
# Leave empty for no password (default for local development)
|
||||
REDIS_PASSWORD=
|
||||
# Using external Redis server at 172.18.0.2:6379
|
||||
REDIS_HOST=172.18.0.2
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=redis_JCHeKT
|
||||
REDIS_DB=0
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user