27187997b3
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
56 lines
1.6 KiB
Bash
56 lines
1.6 KiB
Bash
# ========== Cyrene 生产环境 Docker 部署配置 ==========
|
|
# 复制此文件为 .docker.env 并填入真实值
|
|
# cp .docker.env.example .docker.env
|
|
# 使用方式: docker compose --env-file .docker.env up -d
|
|
|
|
# ========== LLM API(必填) ==========
|
|
LLM_API_URL=https://api.openai.com/v1
|
|
LLM_API_KEY=sk-xxxxx
|
|
LLM_MODEL=gpt-4o
|
|
LLM_FALLBACK_MODEL=gpt-4o-mini
|
|
|
|
# ========== 管理员账号(必填) ==========
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=change-me-to-secure-password
|
|
ADMIN_NICKNAME=管理员
|
|
|
|
# ========== 安全密钥(必填) ==========
|
|
JWT_SECRET=change-me-to-random-secret-string
|
|
JWT_EXPIRY_HOURS=720
|
|
INTERNAL_SERVICE_TOKEN=change-me-to-random-token
|
|
|
|
# ========== 数据库 ==========
|
|
POSTGRES_USER=cyrene
|
|
POSTGRES_PASSWORD=change-me-to-random-password
|
|
POSTGRES_DB=cyrene_ai
|
|
|
|
# ========== Redis ==========
|
|
REDIS_PASSWORD=
|
|
|
|
# ========== MinIO 对象存储 ==========
|
|
MINIO_ACCESS_KEY=minioadmin
|
|
MINIO_SECRET_KEY=change-me-to-random-password
|
|
|
|
# ========== 注册与访问控制 ==========
|
|
REGISTRATION_ENABLED=false
|
|
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:9090
|
|
|
|
# ========== WebSocket ==========
|
|
WS_MAX_CONNECTIONS=1000
|
|
SESSION_IDLE_TIMEOUT_MIN=30
|
|
|
|
# ========== 后台自主思考 ==========
|
|
ENABLE_BACKGROUND_THINKING=true
|
|
|
|
# ========== Webhook(可选) ==========
|
|
WEBHOOK_API_KEY=
|
|
|
|
# ========== 反向代理端口(避免与已有 nginx 等服务冲突) ==========
|
|
CADDY_HTTP_PORT=80
|
|
CADDY_HTTPS_PORT=443
|
|
|
|
# ========== 域名与 HTTPS(有域名时填写) ==========
|
|
# 留空 = 仅 HTTP;填写域名后 Caddy 自动申请 Let's Encrypt 证书
|
|
DOMAIN=
|
|
ACME_EMAIL=admin@example.com
|