同步上游v0.1.66并重新应用自定义配置
Some checks failed
CI / test (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Security Scan / backend-security (push) Has been cancelled
Security Scan / frontend-security (push) Has been cancelled

上游更新内容:
- 邀请码注册功能
- 公告系统(Header铃铛通知)
- Gemini 长上下文双倍计费
- Antigravity scope 级别限流
- Redis TLS 支持
- 大量 Claude OAuth 兼容性修复

自定义配置:
- 品牌化:Sub2API → StarFireAPI
- 移除所有 GitHub 链接,改为官网 anthropic.edu.pl
- 移除版本更新日志的 GitHub 跳转
- docker-compose.yml: starfireapi镜像、端口6580、外部Redis
- .env.example: 外部Redis配置

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
huangzhenpc
2026-02-03 20:35:56 +08:00
parent bb3df5785a
commit da1938b19f
9 changed files with 48 additions and 91 deletions

View File

@@ -16,7 +16,7 @@ services:
# Sub2API Application
# ===========================================================================
sub2api:
image: weishaw/sub2api:latest
image: starfireapi:latest
container_name: sub2api
restart: unless-stopped
ulimits:
@@ -24,7 +24,7 @@ services:
soft: 100000
hard: 100000
ports:
- "${BIND_HOST:-0.0.0.0}:${SERVER_PORT:-8080}:8080"
- "${BIND_HOST:-0.0.0.0}:${SERVER_PORT:-6580}:8080"
volumes:
# Data persistence (config.yaml will be auto-generated here)
- sub2api_data:/app/data
@@ -58,9 +58,9 @@ services:
# =======================================================================
# Redis Configuration
# =======================================================================
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=${REDIS_PASSWORD:-}
- REDIS_HOST=${REDIS_HOST:-172.18.0.2}
- REDIS_PORT=${REDIS_PORT:-6379}
- REDIS_PASSWORD=${REDIS_PASSWORD:-redis_JCHeKT}
- REDIS_DB=${REDIS_DB:-0}
- REDIS_ENABLE_TLS=${REDIS_ENABLE_TLS:-false}
@@ -130,8 +130,6 @@ services:
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- sub2api-network
healthcheck:
@@ -171,9 +169,13 @@ services:
# 如需调试可临时添加ports: ["127.0.0.1:5433:5432"]
# ===========================================================================
# Redis Cache
# Redis Cache (DISABLED - Using external Redis at 172.18.0.2:6379)
# ===========================================================================
# Built-in Redis is available but not used by default
# The application connects to external Redis at 172.18.0.2:6379
redis:
profiles:
- disabled
image: redis:8-alpine
container_name: sub2api-redis
restart: unless-stopped