Files
Yoko b70a136111 feat: 新增团队管理概览 Dashboard (#645)
* feat: 新增团队管理Dashboard接口

* chore: 更新团队管理Dashboard接口定义

* feat: 新增团队管理Dashboard页面

* fix: 修复Dashboard平均耗时PostgreSQL兼容性

* fix: 修复Dashboard Token消耗统计口径

* feat: 新增模型消耗ClickHouse表和读写接口

* feat: 增加模型缓存Token解析和消耗记录器

* feat: Dashboard消耗统计改读ClickHouse

* feat: 增加模型消耗历史回填能力

* refactor: 移除模型消耗历史回填逻辑

* refactor: 拆分ClickHouse迁移DDL目录
2026-06-05 11:38:45 +08:00

102 lines
2.1 KiB
Plaintext
Raw Permalink 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.
debug: true
server:
addr: ":8888"
# 必须手动配置为外部可访问地址,用于安装脚本、回调、对象存储公开 URL 等场景。
base_url: "http://localhost:8888"
database:
master: "postgres://monkeycode:monkeycode@localhost:5432/monkeycode?sslmode=disable"
slave: ""
max_open_conns: 100
max_idle_conns: 50
conn_max_lifetime: 30
redis:
host: "localhost"
port: 6379
pass: ""
db: 0
session:
secret: "change-me-to-a-random-32-byte-key"
expire: 86400
smtp:
host: "smtp.example.com"
port: 587
username: ""
password: ""
from: "noreply@example.com"
tls: false
root_path: "/app"
admin_token: "change-me"
logger:
level: "info"
init_team:
email: ""
password: ""
name: ""
image: ""
mcp_hub:
enabled: false
url: "http://mcp-hub:8897/mcp"
token: ""
vm_idle:
sleep_seconds: 600
recycle_seconds: 604800
# VM 回收前,微信公众号档每个 tier 的提前预警时长(秒),可配多档;省略则使用 [7200, 900](2h、15min)
recycle_warn_wechat_lead_seconds: [7200, 900]
# VM 回收前,非微信公众号渠道(钉钉/飞书等)的提前预警时长(秒),<=0 视为禁用;省略则使用 3600(1h)
recycle_warn_default_lead_seconds: 3600
task:
create_req_ttl_seconds: 600
clickhouse:
addr: ""
database: ""
table: "task_logs"
model_usage_table: "model_usage_events"
init_enabled: false
username: ""
password: ""
read_username: ""
read_password: ""
max_open_conns: 64
max_idle_conns: 32
conn_max_lifetime: 3600
object_storage:
enabled: false
provider: "s3"
force_path_style: true
init_bucket: false
presign_expires: "168h"
endpoint: ""
# 外部访问入口,例如 http://example.com/oss。留空时回退到 endpoint。
access_endpoint: ""
access_key: ""
access_key_secret: ""
bucket: ""
region: "us-east-1"
max_size: 52428800
avatar_prefix: "avatar"
spec_prefix: "spec"
repo_prefix: "repo"
temp_prefix: "temp"
static_files:
enabled: true
dir: "/app/static"
route_prefix: "/static"
host_installer:
mode: "online"
bundle_path: "installer/{{.arch}}/host.tgz"