Files
jiang13-bbs/deploy/.env.example
freefire 40bbad2c82 公开页补齐自引用 Canonical 与按类型的结构化数据,图片补上说明文字。
后台设置和内容编辑改成可导航布局;部署用访客 origin 生成 Canonical,避免落到容器地址。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-20 00:11:24 +08:00

27 lines
1.1 KiB
Plaintext
Raw 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 后填写,不要提交 .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、无尾斜杠)。
# api 用于 CORS;web 用于 Canonical / sitemap / robots(运行时读取,勿写成 http://api:3001)。
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