- fix(provider-pool): 修复 ownsGlobalSlot=false 时空队列未清理的内存泄漏 - fix(provider-api): 新增 sanitizeProviderData/ProviderPools,对 customName 等用户输入字段做 HTML 转义,防止 XSS - fix(docker): 删除 docker-compose.yml 中的代理硬编码配置 - fix(api-server): 重构定时健康检查 timer 管理,支持热更新 enabled 状态(stopHealthCheckTimer + 状态变化追踪) - fix(constants): 提取 HEALTH_CHECK/PASSWORD/NETWORK/RETRY 常量到 constants.js - style(api-server): 移除日志中密码长度记录,防止敏感元信息泄露
22 lines
578 B
YAML
22 lines
578 B
YAML
services:
|
|
aiclient-api:
|
|
# 方式一:使用 Docker Hub 预构建镜像(默认,推荐)
|
|
# 使用方法: docker compose up -d
|
|
image: justlikemaki/aiclient-2-api:latest
|
|
container_name: aiclient2api
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
- "8085-8087:8085-8087"
|
|
- "1455:1455"
|
|
- "19876-19880:19876-19880"
|
|
volumes:
|
|
- ./configs:/app/configs
|
|
environment:
|
|
- ARGS=
|
|
healthcheck:
|
|
test: ["CMD", "node", "healthcheck.js"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
start_period: 5s
|
|
retries: 3
|