generated from Misaka-blog/cf-wkrs-pages-vless
-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 12f8dfe
Showing
9 changed files
with
4,037 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Package Worker # 工作流程的名称 | ||
|
||
on: # 触发事件 | ||
workflow_dispatch: # 手动触发 | ||
push: # 当代码被推送到仓库时触发 | ||
paths: # 指定触发条件的文件路径 | ||
- '_worker.js' # 当_worker.js文件发生变动时触发 | ||
|
||
jobs: # 工作流程中的任务 | ||
package-and-commit: # 任务名称 | ||
runs-on: ubuntu-latest # 运行环境,这里使用最新版本的Ubuntu | ||
steps: # 任务步骤 | ||
- name: Checkout Repository # 步骤名称,检出代码 | ||
uses: actions/checkout@v2 # 使用actions/checkout动作 | ||
|
||
- name: Zip the worker file # 将_worker.js文件打包成worker.zip | ||
run: zip cf-wkrs-pages-vless.zip _worker.js package-lock.json package.json wrangler.toml # 使用zip命令直接打包 | ||
|
||
- name: Commit and push the packaged file # 提交并推送打包后的文件 | ||
uses: EndBug/add-and-commit@v7 # 使用EndBug/add-and-commit动作 | ||
with: | ||
add: 'cf-wkrs-pages-vless.zip' # 指定要提交的文件 | ||
message: 'Automatically package and commit worker.zip' # 提交信息 | ||
author_name: GitHub Actions # 提交者名称 | ||
author_email: [email protected] # 提交者邮箱 | ||
token: ${{ secrets.GITHUB_TOKEN }} # 使用GH_TOKEN作为身份验证 |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# cf-wkrs-pages-vless | ||
|
||
在 CloudFlare Workers 或 Pages 部署 vless 节点,支持 Base64、Clash 及 Sing-box 配置文件订阅文件生成 | ||
|
||
## 使用方法 | ||
|
||
- 访问 https://a.sub.workers.dev/d342d11e-d424-4583-b36e-524ab1f0afa4 ,即可查看节点明文配置信息 | ||
- 访问 https://a.sub.workers.dev/d342d11e-d424-4583-b36e-524ab1f0afa4/base64 ,即可使用 Base64 通用客户端订阅 | ||
- 访问 https://a.sub.workers.dev/d342d11e-d424-4583-b36e-524ab1f0afa4/clash ,即可使用 Clash 节点订阅 | ||
- 访问 https://a.sub.workers.dev/d342d11e-d424-4583-b36e-524ab1f0afa4/sb ,即可使用 Sing-box 节点订阅 | ||
|
||
> 提示:`https://a.sub.workers.dev/` 为瞎编的 Workers 或 Pages 部署地址,请修改为自己实际部署的地址;`d342d11e-d424-4583-b36e-524ab1f0afa4` 为项目默认的 UUID,请在实际部署的时候在代码文件的第 6 行处,修改为自己生成的 UUID | ||
## 部署教程 | ||
|
||
- Workers 教程地址:https://blog.misaka.rest/2023/07/29/cf-wkrs-vless/ | ||
- Pages 教程地址:https://blog.misaka.rest/2023/07/29/cf-pages-vless/ | ||
|
||
## 鸣谢项目 | ||
|
||
- zizifn:https://github.com/zizifn/edgetunnel | ||
- 3Kmfi6HP:https://github.com/3Kmfi6HP/EDtunnel | ||
- cmliu:https://github.com/cmliu/edgetunnel | ||
|
||
## 注意事项 | ||
|
||
1. 由于 Workers 节点的 IP 变动频繁,因此请勿在此节点登录重要账号 | ||
2. 由于 pages.dev 域名默认启用了 HSTS,所以无法使用非 TLS 端口的节点 | ||
3. 请勿滥用! | ||
|
||
## 赞助 | ||
|
||
爱发电:https://afdian.net/a/Misaka-blog | ||
|
||
![afdian-MisakaNo の 小破站](https://user-images.githubusercontent.com/122191366/211533469-351009fb-9ae8-4601-992a-abbf54665b68.jpg) |
Oops, something went wrong.