Files
linkup/backend/config.toml
T
2026-10-29 16:27:16 +08:00

38 lines
876 B
TOML

[app]
host = "0.0.0.0"
port = 34173
workers = 2
frontend_dir = "../dist"
environment = "production"
[database]
# sqlite / mysql / postgresql
driver = "sqlite"
path = "./data/linkup.db"
# MySQL 示例:mysql://linkup:password@127.0.0.1:3306/linkup
url = ""
# 连接池按 worker 独立创建;4 workers 时最多使用 80 个连接。
pool_size = 10
max_overflow = 10
pool_recycle = 1800
[smtp]
host = "smtp.163.com"
port = 465
user = ""
password = ""
[storage]
# 任务凭证保存在运行数据目录,部署打包不会包含这些用户照片。
proof_dir = "./data/task-proofs"
max_proof_mb = 8
[security]
otp_pepper = ""
admin_emails = ""
frontend_origin = ""
# Only enable when the service is behind a trusted reverse proxy.
trust_proxy = false
# Set the administrator WeChat/QQ contact before deployment; blank uses a visible placeholder.
sanction_contact = ""