support notes for config

This commit is contained in:
yuzuki999
2023-08-20 22:24:57 +08:00
parent 0fce6588da
commit c3bb809c71
5 changed files with 170 additions and 35 deletions

View File

@@ -1,65 +1,85 @@
{
"Log": {
// V2bX 的日志配置,独立于各 Core 的 log 配置
"Level": "error"
},
"Cores": [
{
"Type": "sing",
// Core类型
"Log": {
// 同 SingBox log 部分配置
"Level": "error",
"Timestamp": true
}
},{
// More
},
{
"Type": "xray",
"Log": {
// 同 Xray-core log 部分配置
"Level": "error"
},
"DnsConfigPath": "",
...
"DnsConfigPath": ""
// More
}
],
"Nodes": [
// Node配置有两种写法
{
// 写法1
"Core": "sing",
// Core类型
"ApiHost": "http://127.0.0.1",
// API接口地址
"ApiKey": "test",
// API密钥即Token
"NodeID": 33,
// 节点ID
"NodeType": "shadowsocks",
// 节点类型
"Timeout": 30,
// 请求超时时间
"RuleListPath": "",
// 本地审计规则
"ListenIP": "0.0.0.0",
// 监听IP
"SendIP": "0.0.0.0",
// 发送IP
"EnableProxyProtocol": true,
"EnableTFO": true,
...
},{
"ApiConfig": {
"ApiHost": "http://127.0.0.1",
"ApiKey": "test",
"NodeID": 33,
"Timeout": 30,
"RuleListPath": ""
},
"Options": {
"Core": "sing",
"EnableProxyProtocol": true,
"EnableTFO": true,
...
}
},
{
"Core": "xray",
"ApiHost": "http://127.0.0.1",
"ApiKey": "test",
"NodeID": 33,
"NodeType": "shadowsocks",
"Timeout": 30,
"RuleListPath": "",
"ListenIP": "0.0.0.0",
"SendIP": "0.0.0.0",
"EnableProxyProtocol": true,
"EnableTFO": true,
...
// 开启 Proxy Protocol参见 https://github.com/haproxy/haproxy/blob/master/doc/proxy-protocol.txt
"EnableTFO": true
// 开启 TCP Fast Open
// More
}
/*,
{
// 写法2
"ApiConfig": {
"ApiHost": "http://127.0.0.1",
"ApiKey": "test",
"NodeID": 33,
"Timeout": 30,
"RuleListPath": ""
},
"Options": {
"Core": "sing",
"EnableProxyProtocol": true,
"EnableTFO": true
}
},
{
"Core": "xray",
"ApiHost": "http://127.0.0.1",
"ApiKey": "test",
"NodeID": 33,
"NodeType": "shadowsocks",
"Timeout": 30,
"RuleListPath": "",
"ListenIP": "0.0.0.0",
"SendIP": "0.0.0.0",
"EnableProxyProtocol": true,
"EnableTFO": true
}*/
]
}