Files
thebet365/.env.docker.example
2026-06-13 17:38:25 +08:00

36 lines
1.2 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
# 首次部署如需写入默认数据,可临时改为 true灌完后改回 false 并重启 api
SEED_DATABASE=false
# 可选:覆盖 admin 初始密码(仅 seed/重置时生效)
# ADMIN_INITIAL_PASSWORD=YourStrongPasswordHere
# 对外端口(宝塔/Nginx 反代推荐只暴露前端API 经反向代理访问)
PLAYER_PORT=8082
ADMIN_PORT=8081
# API 安全开关
# CORS_ORIGINS=https://player.example.com,https://admin.example.com
ENABLE_SWAGGER=false
# 创蓝短信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