- 新增 AiConfig 到 AppConfig - 新增 FromRef<AppState> for AiState - 注册 AiModule 到 ModuleRegistry - 合并 AI protected routes - 修复 sync_module_permissions 只同步 health.% 的 bug Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
45 lines
883 B
TOML
45 lines
883 B
TOML
[server]
|
|
host = "0.0.0.0"
|
|
port = 3000
|
|
|
|
[database]
|
|
url = "__MUST_SET_VIA_ENV__"
|
|
max_connections = 20
|
|
min_connections = 5
|
|
|
|
[redis]
|
|
url = "__MUST_SET_VIA_ENV__"
|
|
|
|
[jwt]
|
|
secret = "__MUST_SET_VIA_ENV__"
|
|
access_token_ttl = "15m"
|
|
refresh_token_ttl = "7d"
|
|
|
|
[auth]
|
|
super_admin_password = "__MUST_SET_VIA_ENV__"
|
|
|
|
[log]
|
|
level = "info"
|
|
|
|
[cors]
|
|
# Comma-separated allowed origins. Use "*" for development only.
|
|
allowed_origins = "http://localhost:5173,http://localhost:5174,http://localhost:5175,http://localhost:5176,http://localhost:3000"
|
|
|
|
[wechat]
|
|
appid = "__MUST_SET_VIA_ENV__"
|
|
secret = "__MUST_SET_VIA_ENV__"
|
|
|
|
[health]
|
|
aes_key = "__MUST_SET_VIA_ENV__"
|
|
hmac_key = "__MUST_SET_VIA_ENV__"
|
|
|
|
[ai]
|
|
default_provider = "claude"
|
|
api_key = ""
|
|
base_url = "https://api.anthropic.com"
|
|
model = "claude-sonnet-4-6"
|
|
max_tokens = 2048
|
|
temperature = 0.3
|
|
cache_ttl_seconds = 604800
|
|
rate_limit_patient_daily = 10
|