mirror of
https://github.com/MengMengCode/CLICD.git
synced 2026-12-03 20:11:24 +08:00
Add offline disk growth and managed data disks, portable full backups and restore, independent clones and batch instance templates, and local ISO and QCOW2 uploads. Persist task details and metric history in SQLite. Replace hand-drawn host and instance charts with shadcn/ui Chart and Recharts, keep numeric values and units together, and preserve responsive layouts, icons, time ranges and full-sample statistics. Validation: backend tests and vet; Linux KVM/LXC/API/config/server tests; frontend and documentation production builds; real disk, reinstall, backup, clone, upload, task-history and NAT tests; 37 cross-host restore checks; responsive chart checks and read-only deployed verification. Guest Windows restore behavior has not been tested on a running Windows VM.
1.2 KiB
1.2 KiB
部署建议
CLICD 可以直接运行在宿主机上,也可以放在反向代理之后。生产环境建议先做好访问控制,再开放给管理员使用。
服务暴露
默认 Web 端口为 8999:
http://YOUR_SERVER_IP:8999
建议:
- 仅允许固定管理员 IP 访问。
- 使用反向代理配置 HTTPS。
- 不要在公开文档或截图里暴露真实登录地址。
systemd
常用命令:
systemctl status clicd
systemctl restart clicd
systemctl enable clicd
journalctl -u clicd -f
防火墙
至少确认:
- 面板端口只对可信来源开放。
- NAT 映射端口按需开放。
- SSH 管理端口不与容器映射冲突。
- IPv6 防火墙规则与 IPv4 同步规划。
备份
建议定期备份:
- CLICD 配置目录。
- SQLite 数据库。
- 容器配置。
- 关键容器的快照或外部数据备份。
面板支持完整实例备份下载和导入,包含系统盘及全部受管数据盘。它不替代配置/数据库备份;任务与历史指标仍保存在面板 SQLite 数据库中。带数据盘实例应使用完整备份,不能依赖旧系统盘快照。