V2bX/example/config.json

85 lines
1.9 KiB
JSON
Raw Normal View History

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