mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
support notes for config
This commit is contained in:
@@ -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
|
||||
}*/
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user