2.14.38 后端 2.14.146/api/file/name 访问内部文件/api/file/name 支持参数覆盖/api/file/name?url=&content=&ua=&mergeSources&ignoreFailedRemoteFile服务器版直接使用链接
非服务器版 本设备使用 或 同步到 Gist 供其他设备使用
改动较大 有问题大家及时反馈(
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7🔥2
Version 2.2.45 (2163)
测试内容:
* fix http request script early response issue
此版本的
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥1🥰1
———
远程文件填 链接1 或 链接2
脚本操作填链接
https://raw.githubusercontent.com/xishang0128/sub-store-template/main/sing-box.js#type=1&name=name // "1" 表示组合订阅, name 为订阅的 "名称", 具体看文件中的说明⚠️ 此脚本与此模板配套 如果要用自定义模板/有自定义脚本的需求 可使用👇🏻的方案自己动手 或者 查看最新版带参数规则的脚本
1.1 使用远程模板
远程链接 中 第一行为 sing-box 模板文件链接例:
https://a.com/sing-box.tpl.json1.2 或者使用本地模板
本地文本 中为 sing-box 模板文件的内容假设 你的 sing-box 模板文件中的
outbounds 是这样的: { "outbounds": [ { "tag": "全部节点", "type": "selector", "default": "urltest", "outbounds": [ "美国节点" ] }, { "tag": "美国节点", "type": "urltest", "outbounds": [] } ] }脚本操作:
let config = JSON.parse($files[0]) // 文件中的第一个
let proxies = await produceArtifact({
type: 'subscription', // 如果是组合订阅 就是 'collection'
name: '订阅的name', // 订阅的"名称", 不是"显示名称"
platform: 'sing-box',
produceType: 'internal'
})
// 先将全部节点结构插到 outbounds
config.outbounds.push(...proxies)
config.outbounds.map(i => {
// 在 全部节点 中插入全部节点名
if (['全部节点'].includes(i.tag)) {
i.outbounds.push(...proxies.map(p => p.tag))
}
// 在 美国节点 中插入全部美国节点名
if (['美国节点'].includes(i.tag)) {
i.outbounds.push(...proxies.filter(p => /美国|🇺🇸|us|united states/i.test(p.tag)).map(p => p.tag))
}
})
$content = JSON.stringify(config, null, 2)
▎其他示例(YAML, JSON):
let singboxProxies = await produceArtifact({
type: 'subscription', // type: 'subscription' 或 'collection'
name: 'sub', // subscription name
platform: 'sing-box', // target platform
produceType: 'internal' // 'internal' produces an Array, otherwise produces a String( JSON.parse('JSON String') )
})
let clashMetaProxies = await produceArtifact({
type: 'subscription',
name: 'sub',
platform: 'ClashMeta',
produceType: 'internal' // 'internal' produces an Array, otherwise produces a String( ProxyUtils.yaml.safeLoad('YAML String').proxies )
}))
// YAML
$content = ProxyUtils.yaml.safeDump({})
// JSON
$content = JSON.stringify({}, null, 2)Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
👍8❤6🤔2😍1
#Sub-Store #教程 #自建 #免费 #平台 #Docker #Node.js #Android
🔗 Sub-Store 相关教程整合更新
Docker 版 和🤗 Hugging Face 的目前为最新版
其他 Docker 云平台可以参考它的
🎲 Sub-Store 代理 App 版安装下载
🛠 Sub-Store 服务器/云平台/Docker/Android 版的相关教程
Docker 版 和
其他 Docker 云平台可以参考它的
Please open Telegram to view this post
VIEW IN TELEGRAM
远程文件填 链接1 或 链接2
脚本操作填链接
https://raw.githubusercontent.com/xishang0128/sub-store-template/main/sing-box.js#type=1&name=name // "1" 表示组合订阅, 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|🇺🇸示例表示:
读取 名称为 "机场" 的
组合订阅 中的节点(单订阅不需要设置 type 参数)把 所有节点插入匹配
/all|all-auto/i 的 outbound 中(跟在 🕳 后面, ℹ️ 表示忽略大小写, 不筛选节点不需要给 🏷 )把匹配
/港|hk|hongkong|kong kong|🇭🇰/i (跟在 🏷 后面, ℹ️ 表示忽略大小写) 的节点插入匹配 /hk|hk-auto/i 的 outbound 中...
⚠️ 如果 outbounds 为空, 自动创建 COMPATIBLE(direct) 并插入 防止报错
如果想完全手写 可参考 https://t.me/cool_scripts/483
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7🥰2
2.14.57, 后端 2.14.169#noFlow 不查询订阅流量信息用例: 可使用标准参数格式
#noCache&noFlow现在用户名错误只影响头像
Gist 同步只跟 token 有关
如截图所示 方便排查问题
Please open Telegram to view this post
VIEW IN TELEGRAM
❤6
2.14.171 前端 2.14.62只是帮你拉取并创建同步配置项目
仍需要你手动设置来源 以进行后续的上传
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1
2.14.172 前端 2.14.65SurgeMac 支持 external (External Proxy Program)根据
User-Agent 自动识别 或 手动指定 target=SurgeMac⚠️ 根据 https://manual.nssurge.com/policy/external-proxy.html
addresses 参数要求为 IP, 可先进行 节点操作 中的 域名解析节点操作 的 类型过滤 支持 external1.
SurgeMac 支持 SSR节点字段
exec 为 ssr-local 路径, 默认 /usr/local/bin/ssr-local; 端口从 10000 开始递增(暂不支持配置)2. 域名解析 目前仅支持 IPv4. 可由节点字段
no-resolve 控制3. 订阅链接(多个订阅请换行) 支持参数:
noFlow 不查询流量, noCache 不使用缓存. 例: http://a.com?token=1#noFlow&noCache4. 脚本链接: 填入完整远程脚本链接 或 类似
/api/file/name 的内部文件调用路径. 除了脚本本身的参数外, 支持叠加参数: noCache 不使用缓存. 例: http://a.com#a=1&b=2#noCache5. 其他外部链接(多个链接请换行) 支持参数:
noCache 不使用缓存. 例: http://a.com#noCachePlease open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
❤2
2.14.179 前端 2.14.72对 QX 输出 VLESS 需要选择开启下面提到的 "包含官方/商店版不支持的协议"
可尝试设置为 3000~4000, 防止拉取结果的总时长超过代理 app 加载外部资源的最大等待时长, 确保拉取成功
⚠️ 删除 gist 文件时, 将同时删除原文件名和编码后的文件名的文件.
⚠️ 统一 gist 上传文件名为编码后的文件名. 可能会导致旧版本时期创建的同步配置 URL 变化, 请注意.
因为使用 GitHub API 上传空的 gist 文件时, 会自动删除该文件. 所以新建的时候会报错, 但是更新的时候不会报错, 只会删除远程 gist.
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4👍2
2.14.181fingerprint(内部转为 tls-fingerprint)global-client-fingerprint优先级低于 proxy 内的
client-fingerprint示例参考截图
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1👍1
2.14.183 前端 2.14.79在更多设置中 开启 "自定义图标使用原始颜色" 时, 默认图标才会一起显示为彩色
ws-path ws-headers 字段不点名批评一下部分客户端. 在新旧字段同时存在时 居然会使用旧字段
感谢 izhangxm 的 PR!
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
2.14.185 前端 2.14.83Please open Telegram to view this post
VIEW IN TELEGRAM
👍4🥰1
🌟Star(感谢支持)| 如何安装和使用
new 命令新增 —-network
可指定容器的 docker 网络
—-private
可将容器的 HostIP 切换至
127.0.0.1Please open Telegram to view this post
VIEW IN TELEGRAM