Skip to content

nyeinkokoaung404/WorkerVless2sub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,099 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preferred Subscription Generator WorkerVless2sub

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

1. Deploy Cloudflare Pages:

  • Fork this project on Github and click Star!!!
  • After selecting Connect to Git in the Cloudflare Pages console, select the WorkerVless2sub project and click Start Setting.

2. Bind a custom domain to Pages:

  • In the Custom Domains tab of the Pages console, click Set Custom Domain at 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 in sub.fuck.cloudns.biz;
  • According to Cloudflare's requirements, your domain name DNS service provider will be returned. After adding the CNAME record WorkerVless2sub.pages.dev of the custom domain sub, click Activate Domain.

3. Modify the quick subscription entry and add the built-in Vless node information:

For example, the domain name of your pages project is: sub.fuck.cloudns.biz;

  • Add the TOKEN variable, 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 HOST variable, for example, edgetunnel-2z2.pages.dev;
  • Add the UUID variable, for example, 30e9c5c8-ed28-4cd9-b008-dc67277f8b02;
  • Add the PATH variable, for example, /?ed=2048;

4. Add your own preferred route:

  • Add the variable ADD/ADDNOTLS local 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/ADDNOTLSAPI as 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 ADDCSV as 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 means ADDCSV meets 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:
8

Workers 部署方法 视频教程

1. 部署 Cloudflare Worker:

  • 在 Cloudflare Worker 控制台中创建一个新的 Worker。
  • worker.js 的内容粘贴到 Worker 编辑器中。

2. 修改 快速订阅入口 以及 添加内置 Vless 节点信息:

例如您的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. 添加你的专属优选线路:

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。例如:
    let addressesapi = [
    	'https://raw.githubusercontent.com/cmliu/WorkerVless2sub/main/addressesapi.txt',
    	'https://addressesapi.090227.xyz/CloudFlareYes',
    ];
    可参考 addressesapi.txt 内容格式 自行搭建。
「 我不是小白!我有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

1. 快速订阅

  • 添加 TOKEN 变量,快速订阅访问入口,默认值为: auto ,获取订阅器默认节点订阅地址即 /auto ,例如:
    https://sub.cmliussss.workers.dev/auto

2. 自定义订阅

  • 自定义订阅格式 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"。

3. 指定 clash、singbox 配置文件

  • 添加 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(支持多元素, 元素之间使用,作间隔)

Star 星星走起

Stargazers over time

感谢

我自己的脑洞,SAKURA-YUMIEzSyncACL4SSR肥羊

About

This is a subscription generator that combines Cloudflare Workers - VLESS with a self-built preferred domain name

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%