chore: 干净 ERP 基座 — 删除 health/ai/wechat 业务代码
删除内容: - 前端: health/(67文件), ai/(2文件), Copilot, MediaPicker, 相关API/Store/Hook - 后端: wechat_handler, wechat_service, wechat_user entity, analytics handler, ai_workflow_seed - 配置: WechatConfig, AppConfig.wechat, AuthState wechat 字段 - 启动: 微信凭据检查块, ensure_ai_workflows() 调用 - 迁移: 新增 m20260613_000170_drop_wechat_users.rs - 脚本: api_test_health_alert.py, api_test_mp.py, mpsync.sh/ps1 - E2E: health-data page, flows/ 目录 保留: erp-core/auth/workflow/message/config/plugin + 基座前端 + 通用组件
This commit is contained in:
81
config/default.toml
Normal file
81
config/default.toml
Normal file
@@ -0,0 +1,81 @@
|
||||
[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__"
|
||||
# dev_mode = true 跳过 jscode2session,允许微信开发者工具模拟器登录
|
||||
# 生产环境必须为 false(默认)
|
||||
dev_mode = false
|
||||
|
||||
[health]
|
||||
aes_key = "__MUST_SET_VIA_ENV__"
|
||||
hmac_key = "__MUST_SET_VIA_ENV__"
|
||||
|
||||
[crypto]
|
||||
kek = "__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
|
||||
quota_check_enabled = true
|
||||
|
||||
[ai.providers.claude]
|
||||
provider_type = "claude"
|
||||
api_key_env = "ANTHROPIC_API_KEY"
|
||||
base_url = "https://api.anthropic.com"
|
||||
default_model = "claude-sonnet-4-6"
|
||||
max_tokens = 2048
|
||||
temperature = 0.3
|
||||
is_enabled = true
|
||||
|
||||
[ai.providers.openai]
|
||||
provider_type = "openai"
|
||||
api_key_env = "OPENAI_API_KEY"
|
||||
base_url = "https://api.openai.com"
|
||||
default_model = "gpt-4o"
|
||||
max_tokens = 2048
|
||||
temperature = 0.3
|
||||
is_enabled = false
|
||||
|
||||
[ai.providers.ollama]
|
||||
provider_type = "ollama"
|
||||
base_url = "http://localhost:11434"
|
||||
default_model = "qwen2.5:7b"
|
||||
max_tokens = 2048
|
||||
temperature = 0.3
|
||||
is_enabled = false
|
||||
|
||||
[storage]
|
||||
upload_dir = "./uploads"
|
||||
max_file_size = "10MB"
|
||||
Reference in New Issue
Block a user