Giter Club home page Giter Club logo

am-cf-sub-rss's Introduction

am-cf-sub-rss

https://github.com/ansoncloud8/am-cf-sub-rss

定制聚合订阅 am-cf-sub-rss

通过Cloudflare Workers & Pages 搭建,将你任意节点与多个订阅聚合成专属于你的订阅链接,完成定制汇聚订阅

Pages 部署方法 视频教程

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 的内容粘贴到 Worker 编辑器中。

2. 修改 订阅入口 :

例如您的workers项目域名为:sub.am.workers.dev

  • 通过修改 mytoken 赋值内容,达到修改你专属订阅的入口,避免订阅泄漏。
    let mytoken = 'auto';
    
    如上所示,你的订阅地址则如下:
    https://sub.am.workers.dev/auto
    或
    https://sub.am.workers.dev/?token=auto

3. 添加你的节点或订阅链接:

3.1 修改 MainData 参数示例

  • 修改 MainData 参数添加你的自建节点,例如:

    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。例如:

    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 clash、singbox等 订阅转换配置文件

注意事项

项目中,TGTOKEN和TGID在使用时需要先到Telegram注册并获取。其中,TGTOKEN是telegram bot的凭证,TGID是用来接收通知的telegram用户或者组的id。

Star 星星走起

Stargazers over time

[点击展开] 赞赏支持 ~🧧 *我非常感谢您的赞赏和支持,它们将极大地激励我继续创新,持续产生有价值的工作。*
  • TRC20: TWTxUyay6QJN3K4fs4kvJTT8Zfa2mWTwDD

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.