-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
102 lines (90 loc) · 2.62 KB
/
config.example.yaml
File metadata and controls
102 lines (90 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# 云服务提供商配置
providers:
# 阿里云账号配置(支持多账号)
aliyun:
- name: "default"
enabled: false
ak: "YOUR_ACCESS_KEY_ID"
sk: "YOUR_ACCESS_KEY_SECRET"
regions:
- "cn-hangzhou"
- "cn-shanghai"
- name: "other"
enabled: false
ak: "YOUR_TEST_ACCESS_KEY_ID"
sk: "YOUR_TEST_ACCESS_KEY_SECRET"
regions:
- "cn-beijing"
# 腾讯云账号配置(支持多账号)
tencent:
- name: "default"
enabled: false
ak: "YOUR_SECRET_ID"
sk: "YOUR_SECRET_KEY"
regions:
- "ap-guangzhou"
- "ap-shanghai"
# CI/CD 工具配置
cicd:
# Jenkins 配置
jenkins:
enabled: false
url: "https://jenkins.example.com"
username: "admin"
token: "YOUR_JENKINS_TOKEN"
# 钉钉配置
dingtalk:
enabled: false # 默认禁用,请在管理页面配置后启用
# 钉钉应用凭证
app_key: "YOUR_DINGTALK_APP_KEY"
app_secret: "YOUR_DINGTALK_APP_SECRET"
# 流式卡片配置
card_template_id: "" # AI 流式卡片模板 ID(可选,需要在钉钉开放平台创建)
# 飞书配置
feishu:
enabled: false # 是否启用飞书机器人
# 飞书应用凭证
app_id: "cli_xxxxxxxxxxxxxxxx" # 飞书应用的 App ID
app_secret: "xxxxxxxxxxxxxxxxxxxxx" # 飞书应用的 App Secret
# 企业微信配置
wecom:
enabled: false # 是否启用企业微信AI机器人
# 企业微信AI机器人凭证
# 在企业微信管理后台 > 应用管理 > 智能助手 中创建并获取
token: "YOUR_WECOM_BOT_TOKEN" # 企业微信AI机器人Token
encoding_aes_key: "YOUR_ENCODING_AES_KEY" # 消息加密密钥(43位字符)
# LLM 大模型配置
llm:
enabled: true
model: "DeepSeek-V3"
api_key: "YOUR_LLM_API_KEY"
base_url: "" # 自定义 API 端点
# 服务器配置
server:
# HTTP 服务配置
http:
enabled: true
port: 8080
debug: true # Gin 调试模式,本地开发建议 true,生产环境通过环境变量 GIN_MODE=release 覆盖
# MCP 服务配置
mcp:
enabled: true
port: 8081
# 外部 MCP 工具自动注册
auto_register_external_tools: true # 是否自动注册外部 MCP 的工具
tool_name_format: "{prefix}{name}" # 工具命名格式
# 外部 MCP Servers 配置文件路径
# 支持 JSON 和 YAML 格式,参考 mcp_servers.example.json
mcp_servers_config: "./mcp_servers.json"
# 认证配置
auth:
enabled: false
type: "token" # token, basic, oauth2
tokens:
- "your-secure-token-1"
- "your-secure-token-2"
# 缓存配置
cache:
enabled: true
type: "memory" # memory 或 redis
ttl: 300 # 缓存过期时间(秒)