Files
jiang13-bbs/.env.example

26 lines
910 B
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.
# jiang13-bbs 环境变量示例
# 复制为 .env 并修改
# PostgreSQL 连接串
DB_DSN=postgres://postgres:postgres@localhost:5432/jiang13?sslmode=disable
# JWT 签名密钥(≥32 字符强随机;禁止 change-me 等占位,留空则自动 crypto/rand 生成)
# JWT_SECRET=
# 服务端口
HTTP_PORT=3001
# 开发模式
DEV_MODE=true
# 正式站点 origin,生产使用 HTTPS;邮件 / Canonical / Sitemap 共用
SITE_URL=http://localhost:3000
# 32 字节随机值的标准 Base64;不填写时禁止保存邮件/S3凭据。独立备份,禁止提交真实密钥。
SETTINGS_MASTER_KEY=
# 逗号分隔的精确内部服务主机名;默认拒绝回环、私网和保留网段
SERVICE_PRIVATE_HOSTS=
# 仅填写实际可信反向代理 IP/CIDR;默认不信任转发头
TRUSTED_PROXIES=
# 紧急恢复:1 强制正常运行,修复后台配置后撤销并重启 API
MAINTENANCE_RECOVERY=0