Files
zclaw_openfang/saas-config.toml.example
iven 5fdf96c3f5 chore: 提交所有工作进度 — SaaS 后端增强、Admin UI、桌面端集成
包含大量 SaaS 平台改进、Admin 管理后台更新、桌面端集成完善、
文档同步、测试文件重构等内容。为 QA 测试准备干净工作树。
2026-03-29 10:46:41 +08:00

35 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.

# ZCLAW SaaS 配置示例
# 复制此文件为 saas-config.toml 并修改配置
# cp saas-config.toml.example saas-config.toml
#
# 安全说明:
# - 数据库 URL 优先通过环境变量 ZCLAW_DATABASE_URL 设置
# - JWT 密钥必须通过环境变量 ZCLAW_SAAS_JWT_SECRET 设置(至少 32 字符随机字符串)
# - TOTP 加密密钥通过环境变量 ZCLAW_TOTP_ENCRYPTION_KEY 设置64 个十六进制字符)
# - 开发环境可设置 ZCLAW_SAAS_DEV=true 使用默认值(不安全!)
[server]
host = "0.0.0.0"
port = 8080
# CORS 允许的源列表(生产环境必须配置)
cors_origins = ["http://localhost:1420", "http://127.0.0.1:1420", "tauri://localhost"]
[database]
# 数据库连接 URL - 建议通过 ZCLAW_DATABASE_URL 环境变量设置,而非在此处明文存储
# url = "postgres://user:password@localhost:5432/zclaw"
[auth]
jwt_expiration_hours = 24
totp_issuer = "ZCLAW SaaS"
[relay]
max_queue_size = 1000
max_concurrent_per_provider = 5
batch_window_ms = 50
retry_delay_ms = 1000
max_attempts = 3
[rate_limit]
requests_per_minute = 60
burst = 10