Files
frontend_v2/.env.example
toom1996 5a8dbf41cb
Some checks failed
deploy / deploy (push) Has been cancelled
update
2026-08-11 22:29:47 +08:00

16 lines
626 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 后按需修改docker-compose 自动读取)
# 注意:不要提交真实密钥;.env 已在 .dockerignore 中排除
# ---- 后端数据库 ----
DB_PASSWORD=root
DB_USER=root
DB_NAME=fashionadmin
# ---- 后端 JWT 密钥(生产务必改为随机长字符串)----
JWT_SECRET=change-me-in-prod
# 说明:
# - 前端构建期通过 compose 的 build.args.API_SSR=http://localhost:8090 拉数据
# - 前端运行期走同源 /apinginx 反代到 backend:8090PUBLIC_API_BASE 在 Dockerfile 中置空
# - backend 监听 8090生产建议去掉 ports 暴露,仅由前端 nginx 反代访问