Files
citywalk-stamp/.env.production.example
YANG JIANKUAN 711f422558 feat: 新增 Docker Compose 部署方案
- Dockerfile 单阶段 Alpine 镜像,使用国内镜像(npmmirror / Prisma 引擎 / apk)加速
- entrypoint 首次复制内置图章素材到 uploads volume,自动执行 prisma migrate deploy
- docker-compose.yml 绑定 127.0.0.1:3001,强制走外部 Nginx 反代
- Express 在 production 下同时托管 packages/web/dist 及 SPA fallback
- Prisma schema 增加 linux-musl 二进制目标,支持 Alpine 运行
- 新增 DEPLOY.md 部署指南,含 .env 模板与 Nginx 反代示例

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-19 17:04:25 +08:00

13 lines
465 B
Plaintext
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.

# 部署前复制为 .env 并修改以下值
# cp .env.production.example .env
# JWT 签名密钥32+ 字符随机串)
JWT_SECRET=please-replace-with-a-strong-random-secret
# 管理后台访问密钥(通过 X-Admin-Key 请求头传入)
ADMIN_API_KEY=please-replace-with-a-strong-random-admin-key
# 对外访问的站点根 URL用于生成 QR 码中的收集链接)
# 必须与你在 Nginx 上配置的域名一致
SITE_URL=https://stamp.example.com