Comments (4)
You don't understand the meaning of "tag": "airport1_tag"
.
I'll give you an example of provider.json
and config_template
.
(I think you don't understand the meaning of the tag, so I'll leave it to the default. But the value of this tag is related to the content of config_template
)
config_template_5gtocdocao_tun_VN.json
{
"subscribes":[
{
"url": "https://gist.githubusercontent.com/Toperlock/b1ca381c32820e8c79669cbbd85b68ac/raw/dafae92fbe48ff36dae6e5172caa1cfd7914cda4/gistfile1.txt",
"tag": "🙃 5gtocdocao",
"enabled": true,
"emoji": 1,
"prefix": "",
"User-Agent":"v2rayng"
},
{
"url": "URL",
"tag": "tag_2",
"enabled": false,
"emoji": 0,
"prefix": "❤️",
"User-Agent":"clashmeta"
}
],
"auto_set_outbounds_dns":{
"proxy": "",
"direct": ""
},
"save_config_path": "./config.json",
"auto_backup": false,
"exclude_protocol":"ssr",
"config_template": "https://github.com/Toperlock/sing-box-subscribe/files/13825122/config_template_no_groups_tun_VN.json",
"Only-nodes": false
}
eg2: Keep the tags in providers.json
unchanged
config_template_5gtocdocao_tun_VN_2.json
{
"subscribes":[
{
"url": "https://gist.githubusercontent.com/Toperlock/b1ca381c32820e8c79669cbbd85b68ac/raw/dafae92fbe48ff36dae6e5172caa1cfd7914cda4/gistfile1.txt",
"tag": "tag_1",
"enabled": true,
"emoji": 1,
"prefix": "",
"User-Agent":"v2rayng"
},
{
"url": "URL",
"tag": "tag_2",
"enabled": false,
"emoji": 0,
"prefix": "❤️",
"User-Agent":"clashmeta"
}
],
"auto_set_outbounds_dns":{
"proxy": "",
"direct": ""
},
"save_config_path": "./config.json",
"auto_backup": false,
"exclude_protocol":"ssr",
"config_template": "https://github.com/Toperlock/sing-box-subscribe/files/13825163/config_template_no_groups_tun_VN_2.json",
"Only-nodes": false
}
The way to parse using the vercel server is as follows:
https://sing-box-subscribe.vercel.app/config/https://gist.githubusercontent.com/Toperlock/b1ca381c32820e8c79669cbbd85b68ac/raw/dafae92fbe48ff36dae6e5172caa1cfd7914cda4/gistfile1.txt/&file=https://github.com/Toperlock/sing-box-subscribe/files/13825163/config_template_no_groups_tun_VN_2.json
In short, you need to write your own config_template and quote it correctly
from sing-box-subscribe.
{
"type": "selector",
"tag": "🙃 5gtocdocao",
"outbounds": [
"{airport1_tag}"
]
}
I know what "tag": "airport1_tag"
means.
I hope to auto generate bare nodes containing selector node without using config_template
Like this:
{
"type": "selector",
"tag": "🙃 5gtocdocao",
"outbounds": [
"❤️node_name prefix - node01",
"❤️node_name prefix - node02"
]
},
{
"type": "shadowsocks",
"tag": "❤️node_name prefix - node01",
"server": "abcdefghijklmn.com",
"server_port": 34567,
"method": "aes-128-gcm",
"password": "12345678"
},
{
"type": "shadowsocks",
"tag": "❤️node_name prefix - node02",
"server": "abcdefghijklmn.com",
"server_port": 34567,
"method": "aes-128-gcm",
"password": "12345678"
}
from sing-box-subscribe.
try the latest content.
from sing-box-subscribe.
Worked! Thanks lot of.
from sing-box-subscribe.
Related Issues (20)
- 完美了
- 请问License是什么 HOT 2
- 最新的在线转换是不是又改回两条订阅了 HOT 14
- 为啥删了啊。感谢你的话都不让说
- 请问转换好订阅使用 Clash API 按照设置的端口连接连接不上是哪里没设置好啊? HOT 5
- 请问可以支持docker部署吗? HOT 8
- 如何屏蔽订阅节点里面的,不需要的节点。 HOT 1
- 如何增加非订阅节点 HOT 3
- 用\n合并两条会报错 这样两个节点合并不对吗? HOT 2
- 转换`shadowtls`时,如果`providers.json` 里设置了`prefix`, 生成的`shadowsocks`的`detour`没加`prefix` HOT 1
- 我又来了。 HOT 10
- 分流规则问题,目前dns依然100%泄露.. HOT 4
- 三个订阅转换后还是丢后面两个 HOT 1
- 生成的节点名称后有一个额外的数字 HOT 2
- 可否在链接后增加新参数以自定义 `providers.json` 中的 `exclude_protocol`? HOT 4
- vercel生成的web parser是不是不能作为安卓订阅链接? HOT 2
- hysteria节点转换后使用问题 HOT 3
- vercel.app部署成功后,不能自动下载json文件 HOT 6
- 使用Docker的本地问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sing-box-subscribe.