V2bX/example/config.json

100 lines
2.2 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 10:29:08 -04:00
2023-08-21 06:50:31 -04:00
// 日志等级info, warn, error, none
"Level": "error",
// 日志输出路径,默认输出到标准输出
"Output": ""
2023-08-20 03:13:52 -04:00
},
"Cores": [
{
2023-08-20 10:24:57 -04:00
// Core类型
2023-08-20 10:29:08 -04:00
"Type": "sing",
2023-08-20 03:13:52 -04:00
"Log": {
2023-08-20 10:24:57 -04:00
// 同 SingBox log 部分配置
2023-08-20 10:29:08 -04:00
2023-08-20 03:13:52 -04:00
"Level": "error",
"Timestamp": true
2023-08-25 23:38:18 -04:00
},
"NTP": {
// 同 SingBox ntp 部分配置
// VMess VLESS 建议开启
"Enable": true,
"Server": "time.apple.com",
"ServerPort": 0
2023-08-20 03:13:52 -04:00
}
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 10:29:08 -04:00
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 10:29:08 -04:00
2023-08-20 10:24:57 -04:00
// Core类型
2023-08-20 10:29:08 -04:00
"Core": "sing",
2023-08-20 10:24:57 -04:00
// API接口地址
2023-08-20 10:29:08 -04:00
"ApiHost": "http://127.0.0.1",
2023-08-20 10:24:57 -04:00
// API密钥即Token
2023-08-20 10:29:08 -04:00
"ApiKey": "test",
2023-08-20 10:24:57 -04:00
// 节点ID
2023-08-20 10:29:08 -04:00
"NodeID": 33,
2023-08-20 10:24:57 -04:00
// 节点类型
2023-08-20 10:29:08 -04:00
"NodeType": "shadowsocks",
2023-08-20 10:24:57 -04:00
// 请求超时时间
2023-08-20 10:29:08 -04:00
"Timeout": 30,
2023-08-20 10:24:57 -04:00
// 本地审计规则
2023-08-20 10:29:08 -04:00
"RuleListPath": "",
2023-08-20 10:24:57 -04:00
// 监听IP
2023-08-20 10:29:08 -04:00
"ListenIP": "0.0.0.0",
2023-08-20 10:24:57 -04:00
// 发送IP
2023-08-20 10:29:08 -04:00
"SendIP": "0.0.0.0",
2023-08-20 10:24:57 -04:00
// 开启 Proxy Protocol参见 https://github.com/haproxy/haproxy/blob/master/doc/proxy-protocol.txt
2023-08-20 10:29:08 -04:00
"EnableProxyProtocol": false,
2023-08-20 10:24:57 -04:00
// 开启 TCP Fast Open
2023-08-20 10:29:08 -04:00
"EnableTFO": true
2023-08-20 10:24:57 -04:00
// More
2023-08-20 03:13:52 -04:00
}
2023-08-20 10:24:57 -04:00
/*,
{
// 写法2
2023-08-20 10:29:08 -04:00
2023-08-20 10:24:57 -04:00
"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
]
}