UPDATE
Some checks failed
deploy / deploy (push) Has been cancelled

This commit is contained in:
toom1996
2026-08-22 01:51:42 +08:00
parent 975c55feb2
commit 0df14036cf
16 changed files with 270 additions and 1023 deletions

View File

@ -9,7 +9,16 @@ DB_NAME=fashionadmin
# ---- 后端 JWT 密钥(生产务必改为随机长字符串)----
JWT_SECRET=change-me-in-prod
# ---- 公开 ID 混淆盐值(生产务必改为随机串)----
# 决定对外 id/brand_id 编码结果;变更会使线上旧链接全部失效,一旦上生产请固定。
HASHID_SECRET=change-me-in-prod-hashid
# ---- SSG 内部接口令牌(可选)----
# SSG_TOKEN=some-long-random-token
# 说明:
# - 前端构建期通过 compose 的 build.args.API_SSR=http://localhost:8090 拉数据
# - 前端运行期走同源 /api(nginx 反代到 backend:8090),PUBLIC_API_BASE 在 Dockerfile 中置空
# - backend 监听 8090;生产建议去掉 ports 暴露,仅由前端 nginx 反代访问
# - 前端构建期(SSG)通过 compose 的 build.args.SSG_API=http://localhost:8091 拉数据,
# 指向后端独立的 SSG 内部端口(只绑宿主回环,nginx 不反代)
# - 若后端 SSG_TOKEN 非空,前端构建需传相同 SSG_TOKEN(compose 已对齐)
# - backend 监听 8090 对外 + 8091 对内;生产建议去掉 8090 的 ports 暴露