-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See ansoncloud8/am-cf-sub-rss@c7460bb from refs/heads/main
- Loading branch information
amclubs
committed
Aug 12, 2024
1 parent
d31c896
commit 03c18e6
Showing
7 changed files
with
521 additions
and
2 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,34 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: pandoc/latex | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install mustache (to update the date) | ||
run: apk add ruby && gem install mustache | ||
- name: creates output | ||
run: sh ./build.sh | ||
- name: Pushes to another repository | ||
id: push_directory | ||
uses: cpina/github-action-push-to-another-repository@target-branch | ||
env: | ||
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | ||
with: | ||
source-directory: . | ||
destination-github-username: 'amclubs' | ||
destination-repository-name: 'am-cf-sub-rss' | ||
user-email: [email protected] | ||
commit-message: See ORIGIN_COMMIT from $GITHUB_REF | ||
target-branch: main | ||
- name: Test get variable exported by push-to-another-repository | ||
run: echo $DESTINATION_CLONED_DIRECTORY |
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,2 +1,131 @@ | ||
# am-cf-sub-rss | ||
通过Cloudflare Workers & Pages 搭建,将你任意节点与多个订阅聚合成专属于你的订阅链接,完成定制汇聚订阅 | ||
# [am-cf-sub-rss](https://github.com/ansoncloud8/am-cf-sub-rss) | ||
▶️ **新人[YouTube](https://youtube.com/@AM_CLUB)** 需要您的支持,请务必帮我**点赞**、**关注**、**打开小铃铛**,***十分感谢!!!*** ✅ | ||
</br>🎁 不要只是下载或Fork。请 **follow** 我的GitHub、给我所有项目一个 **Star** 星星(拜托了)!你的支持是我不断前进的动力! 💖 | ||
</br>✅**解锁更多技术请访问[【个人博客】](https://am.809098.xyz)** | ||
# | ||
|
||
# 免责声明 | ||
|
||
### 用途 | ||
该项目被设计和开发仅供学习、研究和安全测试目的。它旨在为安全研究者、学术界人士和技术爱好者提供一个了解和实践网络通信技术的工具。 | ||
|
||
### 合法性 | ||
使用者在下载和使用该项目时,必须遵守当地法律和规定。使用者有责任确保他们的行为符合其所在地区的法律、规章以及其他适用的规定。 | ||
|
||
### 免责 | ||
1. 作为该项目的作者,我(以下简称“作者”)强调该项目应仅用于合法、道德和教育目的。 | ||
2. 作者不鼓励、不支持也不促进任何形式的非法使用该项目。如果发现该项目被用于非法或不道德的活动,作者将强烈谴责这种行为。 | ||
3. 作者对任何人或团体使用该项目进行的任何非法活动不承担责任。使用者使用该项目时产生的任何后果由使用者本人承担。 | ||
4. 作者不对使用该项目可能引起的任何直接或间接损害负责。 | ||
5. 通过使用该项目,使用者表示理解并同意本免责声明的所有条款。如果使用者不同意这些条款,应立即停止使用该项目。 | ||
|
||
作者保留随时更新本免责声明的权利,且不另行通知。最新的免责声明版本将会在该项目的 GitHub 页面上发布。 | ||
|
||
# 定制聚合订阅 am-cf-sub-rss | ||
### 通过Cloudflare Workers & Pages 搭建,将你任意节点与多个订阅聚合成专属于你的订阅链接,完成定制汇聚订阅 | ||
|
||
- 官网教程:[AM科技](https://am.809098.xyz) | ||
- YouTube频道:[@AM_CLUB](https://youtube.com/@AM_CLUB) | ||
- Telegram交流群:[@AM_CLUBS](https://t.me/AM_CLUBS) | ||
- 免费订阅:[进群发送关键字: 订阅](https://t.me/AM_CLUBS) | ||
|
||
## Pages 部署方法 [视频教程](https://youtu.be/YBO2hf96150) | ||
### 1. 部署 Cloudflare Pages: | ||
- 在 Github 上先 Fork 本项目,并点上 Star !!! | ||
- 在 Cloudflare Pages 控制台中选择 `连接到 Git`后,选中 `am-cf-sub-rss`项目后点击 `开始设置`。 | ||
|
||
### 2. 给 Pages绑定 自定义域: | ||
- 在 Pages控制台的 `自定义域`选项卡,下方点击 `设置自定义域`。 | ||
- 填入你的自定义次级域名,注意不要使用你的根域名,例如: | ||
您分配到的域名是 `fuck.google.com`,则添加自定义域填入 `sub.fuck.google.com`即可; | ||
- 按照 Cloudflare 的要求将返回你的域名DNS服务商,添加 该自定义域 `sub`的 CNAME记录 `am-cf-sub-rss.pages.dev` 后,点击 `激活域`即可。 | ||
|
||
### 3. 修改 快速订阅入口 : | ||
|
||
例如您的pages项目域名为:`sub.fuck.google.com`; | ||
- 添加 `TOKEN` 变量,快速订阅访问入口,默认值为: `auto` ,获取订阅器默认节点订阅地址即 `/auto` ,例如 `https://sub.fuck.google.com/auto` | ||
|
||
### 4. 添加你的节点和订阅链接: | ||
- 添加 `LINK` 变量,参数添加你的自建节点链接和机场订阅链接,确保每行一个链接,例如: | ||
``` | ||
vless://[email protected]:443?encryption=none&security=tls&sni=worker.amcloud.filegear-sg.me&fp=random&type=ws&host=worker.amcloud.filegear-sg.me#t.me%2FAM_CLUBS vless://[email protected]:443?encryption=none&security=tls&sni=worker.amcloud.filegear-sg.me&fp=random&type=ws&host=worker.amcloud.filegear-sg.me#youtube.com%2F%40AM_CLUB | ||
https://trojan.amcloud.filegear-sg.me/auto | ||
https://worker.amcloud.filegear-sg.me/bestip/866853eb-5293-4f09-bf00-e13eb237c655?uuid=866853eb-5293-4f09-bf00-e13eb237c655 | ||
``` | ||
|
||
## Workers 部署方法 | ||
### 1. 部署 Cloudflare Worker: | ||
|
||
- 在 Cloudflare Worker 控制台中创建一个新的 Worker。 | ||
- 将 [worker.js](https://github.com/ansoncloud8/am-cf-sub-rss/blob/main/_worker.js) 的内容粘贴到 Worker 编辑器中。 | ||
|
||
|
||
### 2. 修改 订阅入口 : | ||
|
||
例如您的workers项目域名为:`sub.am.workers.dev`; | ||
- 通过修改 `mytoken` 赋值内容,达到修改你专属订阅的入口,避免订阅泄漏。 | ||
``` | ||
let mytoken = 'auto'; | ||
``` | ||
如上所示,你的订阅地址则如下: | ||
```url | ||
https://sub.am.workers.dev/auto | ||
或 | ||
https://sub.am.workers.dev/?token=auto | ||
``` | ||
### 3. 添加你的节点或订阅链接: | ||
**3.1 修改 MainData 参数示例** | ||
- 修改 `MainData` 参数添加你的自建节点,例如: | ||
```js | ||
const MainData = ` | ||
vless://[email protected]:443?encryption=none&security=tls&sni=worker.amcloud.filegear-sg.me&fp=random&type=ws&host=worker.amcloud.filegear-sg.me#t.me%2FAM_CLUBS | ||
vless://[email protected]:443?encryption=none&security=tls&sni=worker.amcloud.filegear-sg.me&fp=random&type=ws&host=worker.amcloud.filegear-sg.me#youtube.com%2F%40AM_CLUB | ||
` | ||
``` | ||
注意!`MainData`参数的特殊引号必须保留,否则代码异常。 | ||
**3.2 修改 urls 参数示例** | ||
- 修改 `urls` 参数,在脚本中设置 `urls` 变量为 你的订阅链接 的 URL。例如: | ||
```js | ||
const urls = [ | ||
'https://trojan.amcloud.filegear-sg.me/auto', | ||
'https://hy2sub.pages.dev', | ||
]; | ||
``` | ||
注意!订阅链接内容必须为`base64`格式。 | ||
## 变量说明 | ||
| 变量名 | 示例 | 备注 | | ||
|--------|---------|-----| | ||
| LINK | vless://b7a39... vmess://ew0K... https://sub... | 可同时放入多个节点链接与多个订阅链接, 链接之间用换行做间隔 | | ||
| TOKEN | auto | 快速订阅内置节点的订阅路径地址 /auto | | ||
| TGTOKEN | 6894123456:XXXXXXXXXX0qExVsBPUhHDAbXXXXXqWXgBA | 发送TG通知的机器人token | | ||
| TGID | 6946912345 | 接收TG通知的账户数字ID | | ||
| SUBAPI | subapi.xx.xx.io | clash、singbox等 订阅转换后端 | | ||
| SUBCONFIG | [https://raw.github.../ACL4SSR_Online_MultiCountry.ini](https://raw.githubusercontent.com/ansoncloud8/ACL4SSR/main/Clash/config/ACL4SSR_Online_Full_MultiMode.ini) | clash、singbox等 订阅转换配置文件 | | ||
## 注意事项 | ||
项目中,TGTOKEN和TGID在使用时需要先到Telegram注册并获取。其中,TGTOKEN是telegram bot的凭证,TGID是用来接收通知的telegram用户或者组的id。 | ||
# | ||
▶️ **新人[YouTube](https://youtube.com/@AM_CLUB)** 需要您的支持,请务必帮我**点赞**、**关注**、**打开小铃铛**,***十分感谢!!!*** ✅ | ||
</br>🎁 不要只是下载或Fork。请 **follow** 我的GitHub、给我所有项目一个 **Star** 星星(拜托了)!你的支持是我不断前进的动力! 💖 | ||
# | ||
<center><details><summary><strong> [点击展开] 赞赏支持 ~🧧</strong></summary> | ||
*我非常感谢您的赞赏和支持,它们将极大地激励我继续创新,持续产生有价值的工作。* | ||
- **USDT-TRC20:** `TWTxUyay6QJN3K4fs4kvJTT8Zfa2mWTwDD` | ||
</details></center> | ||
Oops, something went wrong.