例如: 建一个
name 为 sub 的订阅, 配置好节点操作以后可以自由传入参数 无需在 Sub-Store 前端创建新的配置
/download/sub?target=Surge&content=encodeURIComponent编码过的本地节点/download/sub?target=Surge&url=encodeURIComponent编码过的订阅链接&ua=encodeURIComponent编码过的User-AgentPlease open Telegram to view this post
VIEW IN TELEGRAM
❤2
no-error-alert 和 ip-version 字段示例代码:
$server['ip-version'] = 'ipv4'
$server['no-error-alert'] = true
注:
ip-version Surge 端内外部字段对应关系如下(但是你直接写 v4-only 也可以){
dual: 'dual',
ipv4: 'v4-only',
ipv6: 'v6-only',
'ipv4-prefer': 'prefer-v4',
'ipv6-prefer': 'prefer-v6',
}Please open Telegram to view this post
VIEW IN TELEGRAM
❤5
down-speed 和 up-speed 字段截取数字部分Please open Telegram to view this post
VIEW IN TELEGRAM
❤2🤔1
增加了节点字段
no-resolve 可用于跳过域名解析resolved 用来标记域名解析是否成功如图所示 一个简单的例子
当节点名包含
[DDNS] 时, 跳过域名解析$server['no-resolve'] = $server.name.includes('[DDNS]')Please open Telegram to view this post
VIEW IN TELEGRAM
❤4
host 和 port环境变量:
SUB_STORE_BACKEND_API_HOST 默认 ::
SUB_STORE_BACKEND_API_PORT 默认 3000但是不建议直接公网+端口使用. 请配置
SUB_STORE_BACKEND_API_HOST=127.0.0.1 + HTTPS 反向代理(使用复杂路径)Please open Telegram to view this post
VIEW IN TELEGRAM
🤔2❤1
Quantumult%20X/1.0.29 (iPhone14,5; iOS 15.4.1) 改成了 clash.meta部分 User-Agent 举例:
Surge iOS/3004Shadowrocket/1978 CFNetwork/1331.0.7 Darwin/21.4.0clash.meta可尝试设置为
clash-verge/v1.5.1 等客户端的 User-Agent 让机场后端下发更多协议请积极向机场主/机场后端项目反馈
给
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4👍2
Please open Telegram to view this post
VIEW IN TELEGRAM
❤5
Please open Telegram to view this post
VIEW IN TELEGRAM
❤8
2.14.15)现代化浏览器应该都兼容 使用 JSON 文件进行备份和恢复
为防止意外发生 恢复之前请备份数据
User-Agent 改为 clash.meta 后, 调整订阅预处理器的逻辑, 减少 Base64 误判如果还有问题 可以在前端设置
User-Agent部分
User-Agent 举例:Surge iOS/3004Shadowrocket/1978 CFNetwork/1331.0.7 Darwin/21.4.0clash.metaQuantumult%20X/1.0.29 (iPhone14,5; iOS 15.4.1)Please open Telegram to view this post
VIEW IN TELEGRAM
👍6❤5
[ ] 的 IPv6 地址, URI 输出时也自动加上 [ ]Please open Telegram to view this post
VIEW IN TELEGRAM
可先查看预览中的节点 JSON 数据 或 查看
通用订阅 或 手动打开 ?target=JSON 查看字段名 再进行修改const port = Number($server.port)
return [80, 443].includes(port)
相关: 脚本操作支持节点快捷脚本. 语法与 Shadowrocket 脚本类似
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4👍1
SUB_STORE_FRONTEND_BACKEND_PATH=/2cXaAxRGfddmGz2yx1wA SUB_STORE_FRONTEND_PATH=/root/sub-store/frontend SUB_STORE_FRONTEND_HOST=127.0.0.1 SUB_STORE_FRONTEND_PORT=3001 SUB_STORE_DATA_BASE_PATH=/root/sub-store SUB_STORE_BACKEND_API_HOST=127.0.0.1 SUB_STORE_BACKEND_API_PORT=3000 node sub-store.bundle.js
配置 3001 端口的反代后
https://frontend.com?api=https://frontend.com/2cXaAxRGfddmGz2yx1wA
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1
SUB_STORE_DATA_URL 设置一个远程数据文件链接这样每次启动都会从这个地址拉取并恢复数据
使用场景: 云平台重新部署后自动恢复之前备份的数据
Please open Telegram to view this post
VIEW IN TELEGRAM
hy2://Please open Telegram to view this post
VIEW IN TELEGRAM
❤1
当 Hysteria/Hysteria2 端口跳跃字段为空时, 删除此字段
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1
前端版本 > 2.14.20 可进行配置
开启后 依赖的远程订阅出错时 不会报错了 需要自行查看日志
同时支持 URL 参数覆盖, 例如:
/download/collection/all?target=Surge&ignoreFailedRemoteSub=truePlease open Telegram to view this post
VIEW IN TELEGRAM
❤8👍5
2.14.133port 的类型)2.14.24) 更换了新的通知横幅失去焦点或有交互时 不会自动消失 可以慢慢查看错误信息
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3👍2
Please open Telegram to view this post
VIEW IN TELEGRAM
❤9👍5