HnuCTF 是由海南大学网络安全团队 (HNUSEC) 主办的现代化 CTF 竞赛平台。
🚀 本项目基于 A1CTF 开源项目二次开发。
- Ubuntu 22.04 LTS (推荐)
- 2核 4GB 内存最低配置
- 已安装 K3s 集群
# 1. 配置 kubectl
mkdir -p ~/.kube
cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
# 2. 克隆项目
git clone https://github.com/Fruit-Guardians/HnuCTF.git
cd HnuCTF
# 3. 配置数据库连接
cp k8sconfig.yaml.example k8sconfig.yaml
# 编辑 k8sconfig.yaml 配置 PostgreSQL 连接
# 4. 配置镜像仓库
# 编辑 k8sconfig.yaml 中的 image: 为你的镜像地址
# 5. 创建命名空间
kubectl create namespace a1ctf
# 6. 部署应用
kubectl apply -f k8sconfig.yaml -n a1ctf
# 7. 检查状态
kubectl get pods -n a1ctf编辑 k8sconfig.yaml:
# PostgreSQL 连接配置
postgres_host: "你的PostgreSQL地址"
postgres_user: "postgres"
postgres_password: "你的密码"
# 镜像配置
image: "registry.example.com/hnuctf:latest"# 查看服务
kubectl get svc -n a1ctf
# 默认使用 NodePort 暴露服务,端口范围 30000-32767HnuCTF/
├── clientapp/ # React 前端
├── src/ # Go 后端
├── migrations/ # 数据库迁移
├── i18n/ # 国际化
└── k8sconfig.yaml # K8s 部署配置
本项目采用 AGPL-3.0 License 开源协议。