[OpenWrt] 分享自用 sing-box 配置 json 模板(适合裸核跑, PC、OpenWRT、iOS 一把梭)

·

之前分享过通过 sub-store 动态追加节点至模板中分组,最终获得可直接裸核运行所需 config 的方案:>>点我跳转

在此之后我又优化了一下 json 配置模板,并且由于 AppStore 中的 iOS 官方版还是 1.11 版本内核,因此单独列出了 v1.11 的可用配置,照着以下操作,包一把跑起来。

所需的全部模板和 js 脚本都在这里:>>点我跳转

注:以下提供的所有配置仅适用于官方 1.12 和 1.11 内核,下载内核时请认准版本号

跨版本完全不通用!!

操作步骤

  1. 搭建 sub-store 后端,并且在其中添加你的节点或鸡场订阅
  2. 将我提供的配置模板放在 sub-store 的“文件管理”中
  3. 编辑模板,添加脚本操作,输入链接并保存:
https://raw.githubusercontent.com/LongLights/sing-box_template_merge_sub-store/refs/heads/main/merge.js#name=<你在 sub-store 中的订阅名称>&type=<在 sub-store 中的订阅类型>#noCache

  1. 复制 sub-store 中的模板链接,就是能供你直接裸核运行的完整 json 配置了
  2. 把完整 json 配置和 sing-box 核心放在同一个目录下,开 run
./sing-box run -c config.json #linux 如 openwrt 端运行
.sing-box.exe run -c config.json #windows 管理员启动 cmd 运行
  1. 访问 localhost:9090 或 路由器 ip:9090 ,进入面板选择分组

如果看完描述还是不知道怎么操作

手把手实操,看完记得点赞: https://www.youtube.com/watch?v=MIjjQgbZico

mihomo 天下第一

可以试试我的 mihomo 模板: https://github.com/LongLights/sing-box_template_merge_sub-store/blob/main/%E8%87%AA%E7%94%A8mihomo%E9%85%8D%E7%BD%AE%E6%A8%A1%E6%9D%BF.yaml

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *