support custom core name

This commit is contained in:
Yuzuki616
2023-09-16 20:03:02 +08:00
parent db5059106c
commit 3a7d10c142
5 changed files with 107 additions and 46 deletions

View File

@@ -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",
}
/*,
{