From 0f68dfb319829bfa13f2deaccd7d7d805f53cbf4 Mon Sep 17 00:00:00 2001 From: MasonLiu <2857911564@qq.com> Date: Sun, 24 May 2026 02:27:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 41 ++++ index.php | 494 +++++++++++++++++++++++++++++++++++++++++++ static/api.png | Bin 0 -> 375371 bytes static/favicon.ico | Bin 0 -> 38700 bytes static/heyunlogo.png | Bin 0 -> 20562 bytes static/initial.css | 121 +++++++++++ static/style.css | 338 +++++++++++++++++++++++++++++ 7 files changed, 994 insertions(+) create mode 100644 README.md create mode 100644 index.php create mode 100644 static/api.png create mode 100644 static/favicon.ico create mode 100644 static/heyunlogo.png create mode 100644 static/initial.css create mode 100644 static/style.css diff --git a/README.md b/README.md new file mode 100644 index 0000000..ab646d5 --- /dev/null +++ b/README.md @@ -0,0 +1,41 @@ +## 核云IDC服务商VPS自动监测重启程序 + +### API接口信息 +- 获取登录Token + `https://www.heyunidc.cn/v1/login_api?account={phone number/email acc}&password={API KEY}` + 备注:POST方法 +- 获取VPS列表 + `https://www.heyunidc.cn/v1/hosts?page=1&limit=100` + 备注:GET方法,使用"Authorization: JWT {Token}"进行认证 + 注意:若您的VPS数量超过100,需要更改limit数量 +- 获取VPS状态 + `https://www.heyunidc.cn/v1/hosts/{id}/module/status?type=host` + 备注:GET方法,使用"Authorization: JWT {Token}"进行认证 +- 操作VPS + `PUT https://www.heyunidc.cn/v1/hosts/:id/module/hard_reboot` + 备注:PUT方法,使用"Authorization: JWT {Token}"进行认证 + 操作类型:hard_reboot - 硬重启,on - 开机,off - 关机,reboot - 重启 + +### 使用方法 +#### 获取API_KEY +如图所示: + + +#### Web端 +部署到服务器上,分配域名或直接IP访问即可 +首次使用会进入配置页,依次输入API_PASS,ACCOUNT,API_KEY(其中API_PASS是您自定义的网站访问密码,支持大小写字母以及数字) +随后访问`http://example.com/?pass=API_PASS`即可 + +#### 监控端 +- 安装: +1. chmod +x ./install.sh +2. ./install.sh + +系统将自动注册名为idc-monitor的system服务 + +- 安装: +1. chmod +x ./uninstall.sh +2. ./uninstall.sh + +### 配置信息 + diff --git a/index.php b/index.php new file mode 100644 index 0000000..4c4f95b --- /dev/null +++ b/index.php @@ -0,0 +1,494 @@ + + + +
+ + + + +请填写以下信息以开始使用
+config.php 文件中,请妥善保管。config.php 文件并重新运行。实时查看和管理您的云服务器
+