生成 sing-box 配置


Sub-Store 文件动态生成
sing-box 配置示例亚托莉佬不维护了 请自行寻找或创建模板 然后配置脚本使用
可参考
https://github.com/huixiao666/pk-box
https://github.com/Sheldontao/Scripts/tree/main/sub-store-template/1.12or13
远程文件填
脚本操作填链接
https://raw.githubusercontent.com/xishang0128/sub-store-template/main/sing-box.js#type=1&name=name如果出现死活无法拉取外部资源的情况 可参考

⚠️ 此脚本与此模板配套 如果要用自定义模板/有自定义脚本的需求 可使用👇🏻的方案
1.1 使用远程模板
远程链接 中 第一行为 sing-box 模板文件链接例:
https://a.com/sing-box.tpl.json1.2 或者使用本地模板
本地文本 中为 sing-box 模板文件的内容使用脚本操作 填入链接:
https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/sing-box/template.js#type=组合订阅&name=机场&outbound=🕳ℹ️all|all-auto🕳ℹ️hk|hk-auto🏷ℹ️港|hk|hongkong|kong kong|🇭🇰🕳ℹ️tw|tw-auto🏷ℹ️台|tw|taiwan|🇹🇼🕳ℹ️jp|jp-auto🏷ℹ️日本|jp|japan|🇯🇵🕳ℹ️sg|sg-auto🏷ℹ️^(?!.*(?:us)).*(新|sg|singapore|🇸🇬)🕳ℹ️us|us-auto🏷ℹ️美|us|unitedstates|united states|🇺🇸示例表示:
读取 名称为 "机场" 的
把 所有节点插入匹配
把匹配
...
支持换行填写(如图 2)
也支持传入订阅 URL. 参数为
⚠️ 如果 outbounds 为空, 自动创建 COMPATIBLE(direct) 并插入 防止报错
可选参数: includeUnsupportedProxy 含不支持的协议 SSR 和 Snell. 用法: &includeUnsupportedProxy=true
如果想完全手写 可参考 https://t.me/zhetengsha/1066
Sub-Store 合集
频道资源合集
恰饭推荐
群组
#Sub-Store #SubStore #sing-box #singbox #配置 #示例 #脚本
读取 名称为 "机场" 的
组合订阅 中的节点(单订阅不需要设置 type 参数)把 所有节点插入匹配
/all|all-auto/i 的 outbound 中(跟在 🕳 后面, ℹ️ 表示忽略大小写, 不筛选节点不需要给 🏷 )把匹配
/港|hk|hongkong|kong kong|🇭🇰/i (跟在 🏷 后面, ℹ️ 表示忽略大小写) 的节点插入匹配 /hk|hk-auto/i 的 outbound 中...
支持换行填写(如图 2)
也支持传入订阅 URL. 参数为
url. 记得 url 需要 encodeURIComponent. 例如: http://a.com?token=123 应使用 url=http%3A%2F%2Fa.com%3Ftoken%3D123⚠️ 如果 outbounds 为空, 自动创建 COMPATIBLE(direct) 并插入 防止报错
可选参数: includeUnsupportedProxy 含不支持的协议 SSR 和 Snell. 用法: &includeUnsupportedProxy=true
如果想完全手写 可参考 https://t.me/zhetengsha/1066
Sub-Store 合集
频道资源合集
恰饭推荐
群组
#Sub-Store #SubStore #sing-box #singbox #配置 #示例 #脚本