Files
yinjianm 73b1696b0a feat(admin-frontend): 新增节点自动上线托管能力
为节点新增 auto_online 字段与后台同步任务,
仅对开启托管的节点按在线状态自动同步前台显示。

管理端补齐单节点与批量开关、列表标识与统计,
并在自动上线启用时禁用手动显隐切换。

后端新增定时命令、保存校验、批量更新支持、
数据库迁移与单元测试,保证托管逻辑可落地。
2026-04-28 00:08:12 +08:00

31 lines
613 B
Caddyfile

:80 {
encode zstd gzip
root * /usr/share/caddy
@api path /api /api/*
handle @api {
reverse_proxy {$XBOARD_BACKEND_UPSTREAM:http://web:7001}
}
@upload path /upload /upload/*
handle @upload {
uri strip_prefix /upload
reverse_proxy {$XBOARD_UPLOAD_UPSTREAM:https://pic.535888.xyz} {
header_up Host {upstream_hostport}
}
}
redir / /assets/admin/ 308
redir /assets/admin /assets/admin/ 308
@admin path /assets/admin /assets/admin/*
handle @admin {
try_files {path} {path}/ /assets/admin/index.html
file_server
}
handle {
respond "Not Found" 404
}
}