Files
thebet365/.env.docker.example
Mars e7e938f261 feat: WC2026 赛事 seed、生产上线初始化脚本与目录归档
重构 seed 为 WC2026 72 场小组赛与 48 强优胜盘;新增 production 模式仅保留 admin 与赛事示例;提供 prod-init-db 全量重置脚本;管理端 i18n 分包与赛事归档能力。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-12 18:17:00 +08:00

34 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 复制为 .env.docker 后修改
# cp .env.docker.example .env.docker
# PostgreSQL生产务必修改
POSTGRES_PASSWORD=thebet365
# JWT生产务必修改
JWT_SECRET=change-me-in-production-use-long-random-string
JWT_PLAYER_EXPIRES=24h
JWT_ADMIN_EXPIRES=2h
JWT_AGENT_EXPIRES=8h
# 首次部署写入默认数据(生产环境仅 admin + WC2026 赛事;本地开发含 agent1/player1 演示账号)
# 灌完数据后改为 false 并重启 api
SEED_DATABASE=true
# 可选:覆盖 admin 初始密码(仅 seed/重置时生效)
# ADMIN_INITIAL_PASSWORD=YourStrongPasswordHere
# 对外端口(宝塔/Nginx 反代时可改回 80/443 或保留以下端口)
API_PORT=3000
PLAYER_PORT=8082
ADMIN_PORT=8081
# 创蓝短信Chuanglan仅 API 使用)
CHUANGLAN_ACCOUNT=your_account
CHUANGLAN_PASSWORD=your_password
CHUANGLAN_ENDPOINT=https://sgap.253.com/send/sms
CHUANGLAN_CONNECT_TIMEOUT_MS=10000
CHUANGLAN_READ_TIMEOUT_MS=10000
SMS_CODE_TTL_SECONDS=300
SMS_RATE_LIMIT_SECONDS=60
# 联调时在 .env.docker 设为 true日志会输出验证码与 sessionId对应创蓝批次号上线前改回 false
SMS_DEBUG_LOG_CODE=false