feat: 交付官方 Docker 运行时,外观改背景图并下线自定义 CSS/JS
站点/后台分轨背景与用户列表排序一并落地;生产 CORS 改走 SITE_URL,健康检查带版本号。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
25
deploy/.env.example
Normal file
25
deploy/.env.example
Normal file
@@ -0,0 +1,25 @@
|
||||
# 官方运行时环境变量。复制为 .env 后填写,不要提交 .env。
|
||||
# 契约见 CONTRACT.md。反代由宿主机 Nginx 等承担,见 nginx.example.conf。
|
||||
|
||||
JIANG13_VERSION=0.1.0
|
||||
|
||||
# 镜像名。未推仓库时 docker compose up --build 会打到这些本地 tag。
|
||||
# 发布后改为 registry.example.com/jiang13-bbs-api 等即可 docker compose pull。
|
||||
JIANG13_IMAGE_API=jiang13-bbs-api
|
||||
JIANG13_IMAGE_WEB=jiang13-bbs-web
|
||||
|
||||
# 对外 origin,须与浏览器地址栏一致(含 https、无尾斜杠)。CORS 兜底。
|
||||
SITE_URL=https://bbs.example.com
|
||||
|
||||
# 发布到宿主机的地址/端口,供本机 Nginx 反代。默认只绑 loopback。
|
||||
JIANG13_BIND=127.0.0.1
|
||||
JIANG13_WEB_PORT=3000
|
||||
JIANG13_API_PORT=3001
|
||||
|
||||
# Postgres(官方 Compose 不把 5432 打到宿主机)
|
||||
POSTGRES_USER=jiang13
|
||||
POSTGRES_PASSWORD=change-me
|
||||
POSTGRES_DB=jiang13
|
||||
|
||||
# 生产必须显式设置。留空则首次启动写入 data/.jwt_secret(依赖 appdata volume)。
|
||||
JWT_SECRET=change-me-to-a-long-random-string
|
||||
Reference in New Issue
Block a user