Files

101 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"
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"