mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
support custom core name
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
// 日志等级,info, warn, error, none
|
||||
"Level": "error",
|
||||
|
||||
// 日志输出路径,默认输出到标准输出
|
||||
"Output": ""
|
||||
},
|
||||
@@ -11,6 +12,10 @@
|
||||
{
|
||||
// Core类型
|
||||
"Type": "sing",
|
||||
|
||||
// Core标识名,可选,如果需要启动多个同类型内核则必填
|
||||
"Name": "sing1",
|
||||
|
||||
"Log": {
|
||||
// 同 SingBox log 部分配置
|
||||
|
||||
@@ -26,6 +31,14 @@
|
||||
}
|
||||
// More
|
||||
},
|
||||
{
|
||||
"Type": "sing",
|
||||
"Name": "sing2",
|
||||
"Log": {
|
||||
"Level": "info",
|
||||
"Timestamp": false
|
||||
},
|
||||
},
|
||||
{
|
||||
"Type": "xray",
|
||||
"Log": {
|
||||
@@ -45,26 +58,42 @@
|
||||
// Node标识名,便于查看日志,不填将通过下发的节点配置自动生成
|
||||
// 务必注意不要重复,否则会出现问题
|
||||
"Name": "sing_node1",
|
||||
// Core类型
|
||||
|
||||
// 要使用的Core的类型
|
||||
// 如果填写了CoreName可不填
|
||||
// 建议视情况填写Core和CoreName其中一个,如果均没有填写将随机选择支持的内核
|
||||
"Core": "sing",
|
||||
|
||||
// 要使用的Core的标识名,如果没有定义多个同类型内核可不填
|
||||
"CoreName": "sing1",
|
||||
|
||||
// API接口地址
|
||||
"ApiHost": "http://127.0.0.1",
|
||||
|
||||
// API密钥,即Token
|
||||
"ApiKey": "test",
|
||||
|
||||
// 节点ID
|
||||
"NodeID": 33,
|
||||
|
||||
// 节点类型
|
||||
"NodeType": "shadowsocks",
|
||||
|
||||
// 请求超时时间
|
||||
"Timeout": 30,
|
||||
|
||||
// 监听IP
|
||||
"ListenIP": "0.0.0.0",
|
||||
|
||||
// 发送IP
|
||||
"SendIP": "0.0.0.0",
|
||||
|
||||
// 开启 Proxy Protocol,参见 https://github.com/haproxy/haproxy/blob/master/doc/proxy-protocol.txt
|
||||
"EnableProxyProtocol": false,
|
||||
|
||||
// 开启 TCP Fast Open
|
||||
"EnableTFO": true,
|
||||
|
||||
// 设置 Domain Strategy
|
||||
// 可选 prefer_ipv4 / prefer_ipv6 / ipv4_only / ipv6_only
|
||||
"DomainStrategy": "ipv4_only"
|
||||
@@ -73,8 +102,7 @@
|
||||
},
|
||||
{
|
||||
// 引用其他配置文件
|
||||
|
||||
"Include": "../example/config_node1.json"
|
||||
"Include": "../example/config_node1.json",
|
||||
}
|
||||
/*,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user