Files
jiang13-bbs/backend/app.ini.example

25 lines
955 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.
[server]
HTTP_PORT = 3001
[database]
; PostgreSQL 连接串(部署时请修改账号密码)
DSN = postgres://postgres:postgres@localhost:5432/jiang13?sslmode=disable
[security]
; 留空则用 crypto/rand 生成并持久化到 data/.jwt_secret;生产务必显式指定 ≥32 字符强随机值
JWT_SECRET =
; 32 字节随机值的标准 Base64(openssl rand -base64 32)。留空则不能保存邮件/S3 凭据。
; 环境变量 SETTINGS_MASTER_KEY 优先于此处。丢失后已加密凭据无法解密,不要提交真实值。
SETTINGS_MASTER_KEY =
[paths]
DATA = data
[app]
DEV_MODE = true
; 对外正式 origin,无尾斜杠。账号邮件链接与 Next 的 SITE_URL 必须一致。
; 本地:http://localhost:3000;生产:https://bbs.example.com。环境变量 SITE_URL 优先。
SITE_URL = http://localhost:3000
; 额外 CORS origin,逗号分隔。环境变量 CORS_ORIGINS 优先。同源反代通常可留空。
CORS_ORIGINS =