support include other config file

This commit is contained in:
yuzuki999
2023-09-13 01:21:20 +08:00
parent dc29da8c3c
commit 5286dfa244
3 changed files with 44 additions and 9 deletions

View File

@@ -62,12 +62,16 @@
"EnableProxyProtocol": false,
// 开启 TCP Fast Open
"EnableTFO": true,
// 设置 Domain Strategy
// 可选 prefer_ipv4 / prefer_ipv6 / ipv4_only / ipv6_only
"DomainStrategy": "ipv4_only"
// More
},
{
// 引用其他配置文件
"Include": "../example/config_node1.json"
}
/*,
{

13
example/config_node1.json Normal file
View File

@@ -0,0 +1,13 @@
{
"Core": "xray",
"ApiHost": "https://127.0.0.1",
"ApiKey": "key",
"NodeID": 1,
"NodeType": "vmess",
"Timeout": 30,
"ListenIP": "0.0.0.0",
"SendIP": "0.0.0.0",
"EnableProxyProtocol": false,
"EnableTFO": true,
"DomainStrategy": "ipv4_only"
}