-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea51835
commit 4338f3e
Showing
12 changed files
with
1,731 additions
and
1,551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
name: 批量保活进程 | ||
|
||
on: | ||
schedule: | ||
# 使用cron表达式定义任务运行的时间 | ||
# github使用utc时间 | ||
- cron: '3 22 * * *' #北京时间6点 | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: 安装依赖 | ||
run: | | ||
sudo apt-get install sshpass | ||
sudo apt-get install jq | ||
- name: 登录各个serv00并执行保活脚本 | ||
env: | ||
HOSTS_JSON: ${{ secrets.HOSTS_JSON }} | ||
TELEGRAM_TOKEN: ${{secrets.TELEGRAM_TOKEN}} | ||
TELEGRAM_USERID: ${{secrets.TELEGRAM_USERID}} | ||
WXSENDKEY: ${{secrets.WXSENDKEY}} | ||
SENDTYPE: ${{secrets.SENDTYPE}} | ||
BUTTON_URL: ${{secrets.BUTTON_URL}} | ||
AUTOUPDATE: ${{vars.AUTOUPDATE}} | ||
run: | | ||
chmod +x ./revive.sh | ||
./revive.sh | ||
name: 批量保活进程 | ||
|
||
on: | ||
schedule: | ||
# 使用cron表达式定义任务运行的时间 | ||
# github使用utc时间 | ||
- cron: '3 22 * * *' #北京时间6点 | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: 安装依赖 | ||
run: | | ||
sudo apt-get install sshpass | ||
sudo apt-get install jq | ||
- name: 登录各个serv00并执行保活脚本 | ||
env: | ||
HOSTS_JSON: ${{ secrets.HOSTS_JSON }} | ||
TELEGRAM_TOKEN: ${{secrets.TELEGRAM_TOKEN}} | ||
TELEGRAM_USERID: ${{secrets.TELEGRAM_USERID}} | ||
WXSENDKEY: ${{secrets.WXSENDKEY}} | ||
SENDTYPE: ${{secrets.SENDTYPE}} | ||
BUTTON_URL: ${{secrets.BUTTON_URL}} | ||
AUTOUPDATE: ${{vars.AUTOUPDATE}} | ||
run: | | ||
chmod +x ./revive.sh | ||
./revive.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
name: Sync Fork with Upstream | ||
|
||
on: | ||
schedule: | ||
- cron: '0 19 * * *' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
sync_latest_from_upstream: | ||
name: Sync latest commits from upstream repo | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.repository.fork }} | ||
|
||
steps: | ||
# Step 1: run a standard checkout action | ||
- name: Checkout target repo | ||
uses: actions/checkout@v3 | ||
|
||
# Step 2: run the sync action | ||
- name: Sync upstream changes | ||
id: sync | ||
uses: aormsby/[email protected] | ||
with: | ||
upstream_sync_repo: frankiejun/serv00-play | ||
upstream_sync_branch: main | ||
target_sync_branch: main | ||
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set | ||
exclude: | | ||
.github/workflows/sync.yml | ||
- name: Check for errors | ||
if: failure() | ||
run: echo "Sync failed! Please check the logs for more details." | ||
|
||
- name: Sync success message | ||
if: success() | ||
run: echo "Sync completed successfully!" | ||
name: Sync Fork with Upstream | ||
|
||
on: | ||
schedule: | ||
- cron: '0 19 * * *' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
sync_latest_from_upstream: | ||
name: Sync latest commits from upstream repo | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.repository.fork }} | ||
|
||
steps: | ||
# Step 1: run a standard checkout action | ||
- name: Checkout target repo | ||
uses: actions/checkout@v3 | ||
|
||
# Step 2: run the sync action | ||
- name: Sync upstream changes | ||
id: sync | ||
uses: aormsby/[email protected] | ||
with: | ||
upstream_sync_repo: frankiejun/serv00-play | ||
upstream_sync_branch: main | ||
target_sync_branch: main | ||
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set | ||
exclude: | | ||
.github/workflows/sync.yml | ||
- name: Check for errors | ||
if: failure() | ||
run: echo "Sync failed! Please check the logs for more details." | ||
|
||
- name: Sync success message | ||
if: success() | ||
run: echo "Sync completed successfully!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
*.log | ||
*.json | ||
*.out | ||
*.js | ||
*test | ||
a.* | ||
*.swp | ||
vmess/node_modules | ||
vmess/list | ||
vmess/cloudflared | ||
vless/node_modules | ||
tools/ | ||
*.log | ||
*.json | ||
*.out | ||
*.js | ||
*test | ||
a.* | ||
*.swp | ||
vmess/node_modules | ||
vmess/list | ||
vmess/cloudflared | ||
vless/node_modules | ||
tools/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
Copyright [2024] [饭奇骏] | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
Copyright [2024] [饭奇骏] | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,97 @@ | ||
# serv00 上的一些应用,包括 argo+vmess/vmess+ws/hy2/socks5/mtproto/alist/哪吒探针/sun-panel/webssh 等, 自动化部署、批量保号、进程防杀、消息推送 | ||
|
||
💖 如果你在用这个项目,请给我打个 star,好让我知道有多少人从这个项目中受益。 | ||
|
||
## 前置工作 | ||
|
||
1. 你需要有一个 serv00 帐号 | ||
2. 首次运行,无需使用面板,选 1 安装 serv00-play 后,选 13 按回车,它会自动重新登录,输入 ss 回车进入界面。(以后都是输入 ss 回车进入界面) | ||
|
||
## 安装说明 | ||
|
||
```s | ||
bash <(curl -Ls https://raw.githubusercontent.com/frankiejun/serv00-play/main/start.sh) | ||
``` | ||
|
||
## 变量说明 | ||
|
||
| 变量名 | 示例 | 备注 | | ||
| --------------- | ------ | -------------------------------------------------------------------------------- | | ||
| HOSTS_JSON | 见示例 | 可存放 n 个服务器信息 (必选) | | ||
| TELEGRAM_TOKEN | 略 | telegram 机器人的 token (发送 TG 消息必选) | | ||
| TELEGRAM_USERID | 略 | 待通知的 teltegram 用户 ID (发送 TG 消息必选) | | ||
| WXSENDKEY | 略 | server 酱的 sendkey,用于接收微信消息 (发送微信消息必选) | | ||
| SENDTYPE | 3 | 选择推送方式,1.Telegram, 2.微信, 3.都有 (发送消息必选) | | ||
| BUTTON_URL | 略 | 设置 TG 推送消息中的按钮链接 (发送 TG 消息可选),支持#HOST,#USER,#PASS 等变量。 | | ||
| AUTOUPDATE | Y | 设置是否自动更新服务器上的代码,设置在 variable 变量中,值为 Y/N(默认: Y) | | ||
|
||
各主机保活时可不必输入消息通知参数,由 github 同一配置参数。 | ||
|
||
如果主机上配置了消息推送参数,则优先级大于 github 上的配置。 | ||
|
||
## action 保活内容 | ||
|
||
1.定时自动登录各个主机,起到保号作用(因 serv00 需要每 3 个月登录一次) | ||
2.执行兜底保活策略 | ||
3.检查主机上保活用的 cronjob 是否被删,若被删重建保活 cronjob | ||
4.自动更新 serv00-play 代码 | ||
5.同步更新 telegram、微信等参数 | ||
6.登录失败有 TG 消息通知,提醒可能封号(平时正常不会给你发消息,发消息之时便是你封号之日) | ||
|
||
## 消息推送 | ||
|
||
支持向 Telegram 和微信用户发送通知 | ||
|
||
关于如何配置 Telegram 以实现消息推送,可以看 [这个视频](https://www.youtube.com/watch?v=l8fPnMfq86c&t=3s) | ||
|
||
关于微信的配置,目前使用第三方平台提供的功能,可以到 [这里](https://sct.ftqq.com/r/13223) 注册并登录 server 酱,取得 sendKey | ||
|
||
## HOSTS_JSON 的配置实例 | ||
|
||
```js | ||
{ | ||
"info": [ | ||
{ | ||
"host": "s2.serv00.com", | ||
"username": "kkk", | ||
"port": 22, | ||
"password": "fdsafjijgn" | ||
}, | ||
{ | ||
"host": "s2.serv00.com", | ||
"username": "bbb", | ||
"port": 22, | ||
"password": "fafwwwwazcs" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
## 安装说明视频 | ||
|
||
安装使用说明可以看[这里](https://youtu.be/bpYV8r85F-8) | ||
临时隧道已失效,请使用固定隧道名,[如何申请固定隧道名](https://youtu.be/KyMvtWknu-k) | ||
argo+vmess 的搭建教学看[这里](https://youtu.be/nmb2F6uBKsg?si=v8twWIkIjsN8UYb-) | ||
|
||
由于本项目一直在迭代开发,界面会有些变化,想详细了解,可以看这一系列视频[serv00-play 系列](https://www.youtube.com/playlist?list=PLaMnUIjE3d5zArqlLzTU2oMZ0h-5VP6C0) | ||
|
||
## 赞助 | ||
|
||
<left><details><summary><strong> [点击展开] 请作者喝杯咖啡 ~🧧</strong></summary> | ||
_捐赠将是对我最大的支持,它将激励我持续的创新和创作。_ | ||
|
||
![](https://look.pics.cloudns.ch/img/%E6%AC%A7%E6%98%93%E8%B5%9E%E5%8A%A9%E7%A0%81.png) | ||
|
||
- **USDT-TRC20:** `TUa2hLirmyq6tUPpfxHuMmWJExR91vHo5t` | ||
|
||
</details></left> | ||
|
||
## 项目鸣谢 | ||
|
||
[nekohasekai](https://github.com/SagerNet/sing-box)、[AlistGo](https://github.com/AlistGo/alist)、[9seconds](https://github.com/9seconds/mtg)、[eooce](https://github.com/eooce)、[nrootconauto](https://github.com/nrootconauto/MrChrootBSD)、[nezhahq](https://github.com/nezhahq/agent)、[huashengdun](https://github.com/huashengdun/webssh)、[hslr-s](https://github.com/hslr-s/sun-panel) | ||
[yangtb2024](https://github.com/yangtb2024/OneTimeMessagePHP) | ||
|
||
## 免责声明 | ||
|
||
本程序仅供学习了解, 非盈利目的,请于下载后 24 小时内删除, 不得用作任何商业用途, 代码、数据及图片均有所属版权, 如转载须注明来源。 | ||
使用本程序必循遵守部署免责声明。使用本程序必循遵守部署服务器所在地、所在国家和用户所在国家的法律法规, 程序作者不对使用者任何不当行为负责。 | ||
# serv00 上的一些应用,包括 argo+vmess/vmess+ws/hy2/socks5/mtproto/alist/哪吒探针/sun-panel/webssh 等, 自动化部署、批量保号、进程防杀、消息推送 | ||
|
||
💖 如果你在用这个项目,请给我打个 star,好让我知道有多少人从这个项目中受益。 | ||
|
||
## 前置工作 | ||
|
||
1. 你需要有一个 serv00 帐号 | ||
2. 首次运行,无需使用面板,选 1 安装 serv00-play 后,选 13 按回车,它会自动重新登录,输入 ss 回车进入界面。(以后都是输入 ss 回车进入界面) | ||
|
||
## 安装说明 | ||
|
||
```s | ||
bash <(curl -Ls https://raw.githubusercontent.com/frankiejun/serv00-play/main/start.sh) | ||
``` | ||
|
||
## 变量说明 | ||
|
||
| 变量名 | 示例 | 备注 | | ||
| --------------- | ------ | -------------------------------------------------------------------------------- | | ||
| HOSTS_JSON | 见示例 | 可存放 n 个服务器信息 (必选) | | ||
| TELEGRAM_TOKEN | 略 | telegram 机器人的 token (发送 TG 消息必选) | | ||
| TELEGRAM_USERID | 略 | 待通知的 teltegram 用户 ID (发送 TG 消息必选) | | ||
| WXSENDKEY | 略 | server 酱的 sendkey,用于接收微信消息 (发送微信消息必选) | | ||
| SENDTYPE | 3 | 选择推送方式,1.Telegram, 2.微信, 3.都有 (发送消息必选) | | ||
| BUTTON_URL | 略 | 设置 TG 推送消息中的按钮链接 (发送 TG 消息可选),支持#HOST,#USER,#PASS 等变量。 | | ||
| AUTOUPDATE | Y | 设置是否自动更新服务器上的代码,设置在 variable 变量中,值为 Y/N(默认: Y) | | ||
|
||
各主机保活时可不必输入消息通知参数,由 github 同一配置参数。 | ||
|
||
如果主机上配置了消息推送参数,则优先级大于 github 上的配置。 | ||
|
||
## action 保活内容 | ||
|
||
1.定时自动登录各个主机,起到保号作用(因 serv00 需要每 3 个月登录一次) | ||
2.执行兜底保活策略 | ||
3.检查主机上保活用的 cronjob 是否被删,若被删重建保活 cronjob | ||
4.自动更新 serv00-play 代码 | ||
5.同步更新 telegram、微信等参数 | ||
6.登录失败有 TG 消息通知,提醒可能封号(平时正常不会给你发消息,发消息之时便是你封号之日) | ||
|
||
## 消息推送 | ||
|
||
支持向 Telegram 和微信用户发送通知 | ||
|
||
关于如何配置 Telegram 以实现消息推送,可以看 [这个视频](https://www.youtube.com/watch?v=l8fPnMfq86c&t=3s) | ||
|
||
关于微信的配置,目前使用第三方平台提供的功能,可以到 [这里](https://sct.ftqq.com/r/13223) 注册并登录 server 酱,取得 sendKey | ||
|
||
## HOSTS_JSON 的配置实例 | ||
|
||
```js | ||
{ | ||
"info": [ | ||
{ | ||
"host": "s2.serv00.com", | ||
"username": "kkk", | ||
"port": 22, | ||
"password": "fdsafjijgn" | ||
}, | ||
{ | ||
"host": "s2.serv00.com", | ||
"username": "bbb", | ||
"port": 22, | ||
"password": "fafwwwwazcs" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
## 安装说明视频 | ||
|
||
安装使用说明可以看[这里](https://youtu.be/bpYV8r85F-8) | ||
临时隧道已失效,请使用固定隧道名,[如何申请固定隧道名](https://youtu.be/KyMvtWknu-k) | ||
argo+vmess 的搭建教学看[这里](https://youtu.be/nmb2F6uBKsg?si=v8twWIkIjsN8UYb-) | ||
|
||
由于本项目一直在迭代开发,界面会有些变化,想详细了解,可以看这一系列视频[serv00-play 系列](https://www.youtube.com/playlist?list=PLaMnUIjE3d5zArqlLzTU2oMZ0h-5VP6C0) | ||
|
||
## 赞助 | ||
|
||
<left><details><summary><strong> [点击展开] 请作者喝杯咖啡 ~🧧</strong></summary> | ||
_捐赠将是对我最大的支持,它将激励我持续的创新和创作。_ | ||
|
||
![](https://look.pics.cloudns.ch/img/%E6%AC%A7%E6%98%93%E8%B5%9E%E5%8A%A9%E7%A0%81.png) | ||
|
||
- **USDT-TRC20:** `TUa2hLirmyq6tUPpfxHuMmWJExR91vHo5t` | ||
|
||
</details></left> | ||
|
||
## 项目鸣谢 | ||
|
||
[nekohasekai](https://github.com/SagerNet/sing-box)、[AlistGo](https://github.com/AlistGo/alist)、[9seconds](https://github.com/9seconds/mtg)、[eooce](https://github.com/eooce)、[nrootconauto](https://github.com/nrootconauto/MrChrootBSD)、[nezhahq](https://github.com/nezhahq/agent)、[huashengdun](https://github.com/huashengdun/webssh)、[hslr-s](https://github.com/hslr-s/sun-panel) | ||
[yangtb2024](https://github.com/yangtb2024/OneTimeMessagePHP) | ||
|
||
## 免责声明 | ||
|
||
本程序仅供学习了解, 非盈利目的,请于下载后 24 小时内删除, 不得用作任何商业用途, 代码、数据及图片均有所属版权, 如转载须注明来源。 | ||
使用本程序必循遵守部署免责声明。使用本程序必循遵守部署服务器所在地、所在国家和用户所在国家的法律法规, 程序作者不对使用者任何不当行为负责。 |
Oops, something went wrong.