V2bX/example/config.json

142 lines
3.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",
2023-09-16 08:03:02 -04:00
2023-08-21 06:50:31 -04:00
// 日志输出路径,默认输出到标准输出
"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-09-16 08:03:02 -04:00
// Core标识名可选如果需要启动多个同类型内核则必填
"Name": "sing1",
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,
2023-09-12 13:44:03 -04:00
"Server": "time.apple.com",
2023-08-25 23:38:18 -04:00
"ServerPort": 0
2023-08-20 03:13:52 -04:00
}
2023-08-20 10:24:57 -04:00
// More
},
2023-09-16 08:03:02 -04:00
{
"Type": "sing",
"Name": "sing2",
"Log": {
"Level": "info",
"Timestamp": false
},
},
2023-08-20 10:24:57 -04:00
{
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-09-12 13:44:03 -04:00
// Node标识名便于查看日志不填将通过下发的节点配置自动生成
// 务必注意不要重复,否则会出现问题
"Name": "sing_node1",
2023-09-16 08:03:02 -04:00
// 要使用的Core的类型
// 如果填写了CoreName可不填
// 建议视情况填写Core和CoreName其中一个如果均没有填写将随机选择支持的内核
2023-08-20 10:29:08 -04:00
"Core": "sing",
2023-09-16 08:03:02 -04:00
// 要使用的Core的标识名如果没有定义多个同类型内核可不填
"CoreName": "sing1",
2023-08-20 10:24:57 -04:00
// API接口地址
2023-08-20 10:29:08 -04:00
"ApiHost": "http://127.0.0.1",
2023-09-16 08:03:02 -04:00
2023-08-20 10:24:57 -04:00
// API密钥即Token
2023-08-20 10:29:08 -04:00
"ApiKey": "test",
2023-09-16 08:03:02 -04:00
2023-08-20 10:24:57 -04:00
// 节点ID
2023-08-20 10:29:08 -04:00
"NodeID": 33,
2023-09-16 08:03:02 -04:00
2023-08-20 10:24:57 -04:00
// 节点类型
2023-08-20 10:29:08 -04:00
"NodeType": "shadowsocks",
2023-09-16 08:03:02 -04:00
2023-08-20 10:24:57 -04:00
// 请求超时时间
2023-08-20 10:29:08 -04:00
"Timeout": 30,
2023-09-16 08:03:02 -04:00
2023-08-20 10:24:57 -04:00
// 监听IP
2023-08-20 10:29:08 -04:00
"ListenIP": "0.0.0.0",
2023-09-16 08:03:02 -04:00
2023-08-20 10:24:57 -04:00
// 发送IP
2023-08-20 10:29:08 -04:00
"SendIP": "0.0.0.0",
2023-09-16 08:03:02 -04:00
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-09-16 08:03:02 -04:00
2023-08-20 10:24:57 -04:00
// 开启 TCP Fast Open
2023-08-28 03:24:28 -04:00
"EnableTFO": true,
2023-09-16 08:03:02 -04:00
2023-08-28 03:24:28 -04:00
// 设置 Domain Strategy
// 可选 prefer_ipv4 / prefer_ipv6 / ipv4_only / ipv6_only
2023-08-30 03:52:10 -04:00
"DomainStrategy": "ipv4_only"
2023-08-28 03:24:28 -04:00
2023-08-20 10:24:57 -04:00
// More
2023-09-12 13:21:20 -04:00
},
{
// 引用其他配置文件
2023-09-16 08:03:02 -04:00
"Include": "../example/config_node1.json",
2023-08-20 03:13:52 -04:00
}
2023-08-20 10:24:57 -04:00
/*,
{
// 写法2
2023-09-12 13:44:03 -04:00
// 类似旧配置文件 ApiConfig 部分
2023-08-20 10:24:57 -04:00
"ApiConfig": {
"ApiHost": "http://127.0.0.1",
"ApiKey": "test",
"NodeID": 33,
"Timeout": 30,
},
2023-09-12 13:44:03 -04:00
// 类似旧配置文件 ControllerConfig 部分
2023-08-20 10:24:57 -04:00
"Options": {
"Core": "sing",
"EnableProxyProtocol": true,
"EnableTFO": true
2023-08-28 03:24:28 -04:00
"DomainStrategy": "ipv4_only",
2023-08-30 03:52:10 -04:00
// More
2023-08-20 10:24:57 -04:00
}
},
{
2023-08-30 03:52:10 -04:00
// Xray
2023-08-20 10:24:57 -04:00
"Core": "xray",
"ApiHost": "http://127.0.0.1",
"ApiKey": "test",
"NodeID": 33,
"NodeType": "shadowsocks",
"Timeout": 30,
"ListenIP": "0.0.0.0",
"SendIP": "0.0.0.0",
"EnableProxyProtocol": true,
"EnableTFO": true
2023-08-30 03:52:10 -04:00
// More
2023-08-20 10:24:57 -04:00
}*/
2023-08-20 03:13:52 -04:00
]
}