15
.env.example
Normal file
15
.env.example
Normal file
@ -0,0 +1,15 @@
|
||||
# 复制为 .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 拉数据
|
||||
# - 前端运行期走同源 /api(nginx 反代到 backend:8090),PUBLIC_API_BASE 在 Dockerfile 中置空
|
||||
# - backend 监听 8090;生产建议去掉 ports 暴露,仅由前端 nginx 反代访问
|
||||
Reference in New Issue
Block a user