Files

45 lines
2.1 KiB
Bash
Raw Permalink 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.
# ── 应用 ─────────────────────────────────────────────
NODE_ENV=development
APP_PORT=3090
# Swagger 文档路径,生产环境可置空以关闭
SWAGGER_PATH=docs
# ── 数据库 (PostgreSQL) ──────────────────────────────
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/wxmp?schema=public
# ── Redis ────────────────────────────────────────────
REDIS_URL=redis://localhost:6379
# ── JWT ──────────────────────────────────────────────
# 生产环境务必使用足够长的高熵随机串
JWT_SECRET=change-me-to-a-long-random-secret
# access token 有效期(秒),默认 2 小时
JWT_EXPIRES=7200
# ── 微信小程序 ───────────────────────────────────────
# 服务端持有,永不下发前端
WX_APPID=your-wx-appid
WX_SECRET=your-wx-secret
# 本地联调用:无真实 appid 时设为 1 可走通登录链路(mock openid),切勿生产开启
WX_MOCK_LOGIN=
# ── 微信支付(预留,暂未启用)────────────────────────
WX_MCH_ID=
WX_MCH_API_V3_KEY=
WX_MCH_SERIAL_NO=
WX_MCH_PRIVATE_KEY_PATH=
WX_PAY_NOTIFY_URL=
# ── 腾讯云 COS ───────────────────────────────────────
COS_SECRET_ID=
COS_SECRET_KEY=
COS_BUCKET=
COS_REGION=ap-guangzhou
# ── 词云平台(下单后 WCD 生产任务,R4)────────────────
# 词云服务(FastAPI)地址;留空视为未配置:
# 下单后的 WCD 派单返回结构化 "not_configured",不做假成功(详见 docs/wordcloud-contract.md
WORDCLOUD_API_URL=
# 请求词云平台超时(毫秒),可选,默认 30000
WORDCLOUD_TIMEOUT_MS=30000