- Add src/gitea.rs: axum webhook server on :9800, handles @mention in issues and PRs, spawns claude -p for review, posts result as comment - Add call_gitea_api tool: LLM can directly call Gitea REST API with pre-configured admin token (noc_bot identity) - Add Caddy to Docker image as ingress layer (subdomain/path routing) - Config: add gitea section with token_file support for auto-provisioned token - Update suite.md: VPS-first deployment, SubAgent architecture, Caddy role
16 lines
396 B
Caddyfile
16 lines
396 B
Caddyfile
# Suite Ingress — 按需修改域名
|
||
# 复制到 /data/caddy/Caddyfile 后自定义
|
||
# Caddy 自动申请 HTTPS 证书(需要域名解析到本机)
|
||
|
||
# Gitea
|
||
{$SUITE_DOMAIN:localhost}:80 {
|
||
reverse_proxy localhost:3000
|
||
}
|
||
|
||
# 静态站点 / 生成的 web app(放到 /data/www/<name>/ 下)
|
||
# 取消注释并改域名即可:
|
||
# app1.example.com {
|
||
# root * /data/www/app1
|
||
# file_server
|
||
# }
|