This is a VLESS node subscription content generator that automatically generates preferred lines through Cloudflare Workers [Implementation Principle]
Telegram Exchange Group: @CMLiussss
Pages Deployment Method Video Tutorial
- Fork this project on Github and click Star!!!
- After selecting
Connect to Gitin the Cloudflare Pages console, select theWorkerVless2subproject and clickStart Setting.
- In the
Custom Domainstab of the Pages console, clickSet Custom Domainat the bottom. - Fill in your custom subdomain name, and be careful not to use your root domain name, for example:
The domain name assigned to you is
fuck.cloudns.biz, then add a custom domain and fill insub.fuck.cloudns.biz; - According to Cloudflare's requirements, your domain name DNS service provider will be returned. After adding the CNAME record
WorkerVless2sub.pages.devof the custom domainsub, clickActivate Domain.
For example, the domain name of your pages project is: sub.fuck.cloudns.biz;
- Add the
TOKENvariable, the quick subscription access entry, the default value is:auto, get the subscriber's default node subscription address, that is,/auto, for example,https://sub.fuck.cloudns.biz/auto - Add the
HOSTvariable, for example,edgetunnel-2z2.pages.dev; - Add the
UUIDvariable, for example,30e9c5c8-ed28-4cd9-b008-dc67277f8b02; - Add the
PATHvariable, for example,/?ed=2048;
- Add the variable
ADD/ADDNOTLSlocal static preferred route. If the port number is not included, the default port for TLS is 443 / the default port for noTLS is 80. The # sign is followed by a remark alias, for example:
icook.tw:2053# preferred domain name
cloudflare.cfgo.cc# preferred official route
- Add the variable
ADDAPI/ADDNOTLSAPIas the URL of the preferred IP address txt file. For example:
https://raw.githubusercontent.com/cmliu/WorkerVless2sub/main/addressesapi.txt
https://raw.githubusercontent.com/cmliu/WorkerVless2sub/main/addressesipv6api.txt" I'm not a rookie! I have an IP library! I know what IPtest is! I also have a csv speed test file!"
- Add the variable
ADDCSVas the URL of iptest speed test result csv file address. For example:
https://raw.githubusercontent.com/cmliu/WorkerVless2sub/main/addressescsv.csv- Add the variable
DLS, which meansADDCSVmeets the minimum speed requirement. IPs that do not meet the above value will not be added to the preferred subscription content. Note: Do not consider the unit, only the value, please refer to your speed test results. For example:
8Workers 部署方法 视频教程
- 在 Cloudflare Worker 控制台中创建一个新的 Worker。
- 将 worker.js 的内容粘贴到 Worker 编辑器中。
例如您的workers项目域名为:sub.cmliussss.workers.dev;
- 添加
TOKEN变量,快速订阅访问入口,默认值为:auto,获取订阅器默认节点订阅地址即/auto,例如https://sub.cmliussss.workers.dev/auto - 添加
HOST变量,例如edgetunnel-2z2.pages.dev; - 添加
UUID变量,例如30e9c5c8-ed28-4cd9-b008-dc67277f8b02; - 添加
PATH变量,例如/?ed=2048;
3.1 修改 addresses 参数示例
- 修改
addresses参数添加本地静态的优选线路,若不带端口号默认443,不支持生成非TLS订阅,#号后为备注别名,例如:该方式仅推荐添加优选域名的部分,频繁变更的优选推荐通过let addresses = [ 'icook.tw:2053#优选域名', 'cloudflare.cfgo.cc#优选官方线路', '185.221.160.203:443#电信优选IP', ];
addressesapi来实现。
3.2 修改 addressesapi 参数示例
- 修改
addressesapi参数,在脚本中设置addressesapi变量为 优选IP地址txt文件 的 URL。例如:可参考 addressesapi.txt 内容格式 自行搭建。let addressesapi = [ 'https://raw.githubusercontent.com/cmliu/WorkerVless2sub/main/addressesapi.txt', 'https://addressesapi.090227.xyz/CloudFlareYes', ];
「 我不是小白!我有IP库!我知道IPtest是什么!我也有csv测速文件! 」
3.3 修改 addressescsv 参数示例
- 修改
addressescsv参数,在脚本中设置addressescsv变量为 iptest测速结果csv文件地址 的 URL。例如:let DLS = 4;//速度下限 let addressescsv = [ 'https://raw.githubusercontent.com/cmliu/WorkerVless2sub/main/addressescsv.csv', 'https://raw.githubusercontent.com/cmliu/WorkerVless2sub/main/addressescsv.csv', ];
DLS为要求满足的最低速度,不满足改数值以上的IP将不会添加至优选订阅内容。注意:不考虑单位,只看数值,请按照您的测速结果而定。
订阅生成器 使用方法 视频教程
例如您的workers项目域名为:sub.cmliussss.workers.dev;
- 添加
TOKEN变量,快速订阅访问入口,默认值为:auto,获取订阅器默认节点订阅地址即/auto,例如:https://sub.cmliussss.workers.dev/auto
- 自定义订阅格式
https://[你的Workers域名]/sub?host=[你的Vless域名]&uuid=[你的UUID]&path=[你的ws路径] - host:您的 VLESS 伪装域名,例如
edgetunnel-2z2.pages.dev; - uuid:您的 VLESS 客户端 UUID,例如
30e9c5c8-ed28-4cd9-b008-dc67277f8b02; - path(可选):您的 VLESS 的 WS 路径(没有可留空不填),例如
/?ed=2048。 - 自定义订阅地址如下:
https://sub.cmliussss.workers.dev/sub?host=edgetunnel-2z2.pages.dev&uuid=30e9c5c8-ed28-4cd9-b008-dc67277f8b02&path=/?ed=2048
- 注意路径必须包含 "/sub"。
-
添加
format=clash键值,获取 clash 订阅配置,例如:https://sub.cmliussss.workers.dev/auto?format=clash https://sub.cmliussss.workers.dev/sub?format=clash&host=edgetunnel-2z2.pages.dev&uuid=30e9c5c8-ed28-4cd9-b008-dc67277f8b02&path=/?ed=2048
-
添加
format=singbox键值,获取 singbox 订阅配置,例如:https://sub.cmliussss.workers.dev/auto?format=singbox https://sub.cmliussss.workers.dev/sub?format=singbox&host=edgetunnel-2z2.pages.dev&uuid=30e9c5c8-ed28-4cd9-b008-dc67277f8b02&path=/?ed=2048
| 变量名 | 示例 | 备注 |
|---|---|---|
| TOKEN | auto | 快速订阅内置节点的订阅路径地址 /auto (支持多元素, 元素之间使用,作间隔) |
| HOST | edgetunnel-2z2.pages.dev | 快速订阅内置节点的伪装域名 |
| UUID | b7a392e2-4ef0-4496-90bc-1c37bb234904 | 快速订阅内置节点的UUID |
| PATH | /?ed=2560 | 快速订阅内置节点的路径信息 |
| ADD | icook.tw:2053#官方优选域名 | 对应addresses字段 (支持多元素, 元素之间使用,作间隔) |
| ADDAPI | https://raw.github.../addressesapi.txt | 对应addressesapi字段 (支持多元素, 元素之间使用,作间隔) |
| ADDNOTLS | icook.hk:8080#官方优选域名 | 对应addressesnotls字段 (支持多元素, 元素之间使用,作间隔) |
| ADDNOTLSAPI | https://raw.github.../addressesapi.txt | 对应addressesnotlsapi字段 (支持多元素, 元素之间使用,作间隔) |
| ADDCSV | https://raw.github.../addressescsv.csv | 对应addressescsv字段 (支持多元素, 元素之间使用,作间隔) |
| DLS | 8 | addressescsv测速结果满足速度下限 |
| NOTLS | false | 改为true, 将不做域名判断 始终返回noTLS节点 |
| TGTOKEN | 6894123456:XXXXXXXXXX0qExVsBPUhHDAbXXXXXqWXgBA | 发送TG通知的机器人token |
| TGID | 6946912345 | 接收TG通知的账户数字ID |
| SUBAPI | api.v1.mk | clash、singbox等 订阅转换后端 |
| SUBCONFIG | https://raw.github.../ACL4SSR_Online_Full_MultiMode.ini | clash、singbox等 订阅转换配置文件 |
| SUBNAME | WorkerVless2sub | 订阅生成器名称 |
| PS | 【请勿测速】 | 节点名备注消息 |
| PROXYIP | proxyip.fxxk.dedyn.io | 默认分配的ProxyIP, 多ProxyIP将随机分配(支持多元素, 元素之间使用,作间隔) |
| CMPROXYIPS | proxyip.aliyun.fxxk.dedyn.io:HK | 识别HK后分配对应的ProxyIP(支持多元素, 元素之间使用,作间隔) |
我自己的脑洞,SAKURA-YUMI,EzSync、ACL4SSR、肥羊