refactor: 重构数据库连接使用PostgreSQL替代SQLite feat(auth): 增加JWT验证的audience和issuer检查 feat(crypto): 添加AES-256-GCM字段加密支持 feat(api): 集成utoipa实现OpenAPI文档 fix(admin): 修复配置项表单验证逻辑 style: 统一代码格式与类型定义 docs: 更新技术栈文档说明PostgreSQL
26 lines
594 B
TOML
26 lines
594 B
TOML
[server]
|
|
host = "0.0.0.0"
|
|
port = 8080
|
|
# 生产环境必须配置 cors_origins 白名单,开发环境可设置 ZCLAW_SAAS_DEV=true 绕过
|
|
# cors_origins = ["https://your-admin-domain.com"]
|
|
|
|
[database]
|
|
# 使用 DATABASE_URL 环境变量覆盖此配置(推荐)
|
|
# 格式: postgres://user:password@localhost:5432/zclaw
|
|
url = "postgres://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
|