complete example

This commit is contained in:
Yuzuki616
2023-09-16 20:53:09 +08:00
parent 1b3e173a8a
commit 088fb8f848

View File

@@ -4,7 +4,6 @@
// 日志等级info, warn, error, none // 日志等级info, warn, error, none
"Level": "error", "Level": "error",
// 日志输出路径,默认输出到标准输出 // 日志输出路径,默认输出到标准输出
"Output": "" "Output": ""
}, },
@@ -12,10 +11,8 @@
{ {
// Core类型 // Core类型
"Type": "sing", "Type": "sing",
// Core标识名可选如果需要启动多个同类型内核则必填 // Core标识名可选如果需要启动多个同类型内核则必填
"Name": "sing1", "Name": "sing1",
"Log": { "Log": {
// 同 SingBox log 部分配置 // 同 SingBox log 部分配置
@@ -29,7 +26,6 @@
"Server": "time.apple.com", "Server": "time.apple.com",
"ServerPort": 0 "ServerPort": 0
}, },
// SingBox源配置文件目录用于引用标准SingBox配置文件 // SingBox源配置文件目录用于引用标准SingBox配置文件
"OriginalPath": "/etc/V2bX/sing_origin.json" "OriginalPath": "/etc/V2bX/sing_origin.json"
}, },
@@ -50,13 +46,10 @@
}, },
// 静态资源文件目录 // 静态资源文件目录
"AssetPath": "", "AssetPath": "",
// DNS配置文件目录 // DNS配置文件目录
"DnsConfigPath": "", "DnsConfigPath": "",
// 路由配置文件目录 // 路由配置文件目录
"RouteConfigPath": "", "RouteConfigPath": "",
// 本地策略相关配置 // 本地策略相关配置
"ConnectionConfig": { "ConnectionConfig": {
// 详见 https://xtls.github.io/config/policy.html#levelpolicyobject // 详见 https://xtls.github.io/config/policy.html#levelpolicyobject
@@ -69,10 +62,8 @@
"statsUserDownlink": false, "statsUserDownlink": false,
"bufferSize": 4 "bufferSize": 4
}, },
// Inbound配置文件目录 // Inbound配置文件目录
"InboundConfigPath": "", "InboundConfigPath": "",
// Outbound配置文件目录 // Outbound配置文件目录
"OutboundConfigPath": "" "OutboundConfigPath": ""
} }
@@ -81,6 +72,7 @@
// Node配置有两种写法 // Node配置有两种写法
{ {
// 写法1 // 写法1
// sing内核
// Node标识名便于查看日志不填将通过下发的节点配置自动生成 // Node标识名便于查看日志不填将通过下发的节点配置自动生成
// 务必注意不要重复,否则会出现问题 // 务必注意不要重复,否则会出现问题
@@ -155,6 +147,7 @@
// 速度限制过期时间 // 速度限制过期时间
"ExpireTime": 60 "ExpireTime": 60
} }
}, },
@@ -162,6 +155,7 @@
"CertConfig": { "CertConfig": {
// 证书申请模式none、http、dns、self // 证书申请模式none、http、dns、self
"CertMode": "none", "CertMode": "none",
"RejectUnknownSni": false, "RejectUnknownSni": false,
// 证书域名 // 证书域名
@@ -188,40 +182,69 @@
{ {
// 引用其他配置文件 // 引用其他配置文件
"Include": "../example/config_full_node1.json", "Include": "../example/config_full_node1.json",
} },
/*, {
{ // xray内核
// 写法2
// 类似旧配置文件 ApiConfig 部分
"ApiConfig": {
"ApiHost": "http://127.0.0.1",
"ApiKey": "test",
"NodeID": 33,
"Timeout": 30,
},
// 类似旧配置文件 ControllerConfig 部分
"Options": {
"Core": "sing",
"EnableProxyProtocol": true,
"EnableTFO": true
"DomainStrategy": "ipv4_only",
// More
}
},
{
// Xray
"Core": "xray", "Core": "xray",
"ApiHost": "http://127.0.0.1", "ApiHost": "http://127.0.0.1",
"ApiKey": "test", "ApiKey": "test",
"NodeID": 33, "NodeID": 33,
"NodeType": "shadowsocks", "NodeType": "shadowsocks",
"Timeout": 30, "Timeout": 30,
"ListenIP": "0.0.0.0", "ListenIP": "0.0.0.0",
"SendIP": "0.0.0.0", "SendIP": "0.0.0.0",
"EnableProxyProtocol": true, "EnableProxyProtocol": true,
"EnableTFO": true "EnableTFO": true,
// More // 以上同 sing
}*/
// 开启自定义DNS
"EnableDNS": false,
// DNS解析类型AsIs、UseIP、UseIPv4、UseIPv6
"DNSType": "AsIs",
// 开启udp over tcp
"EnableUot": false,
// 禁用IVCheck
"DisableIVCheck": false,
// 禁用嗅探
"DisableSniffing": false,
// 开启回落
"EnableFallback": false,
// 回落相关配置
"FallBackConfigs":{
// 详见 https://xtls.github.io/config/features/fallback.html#fallbackobject
"SNI": "",
"Alpn": "",
"Path": "",
"Dest": "",
"ProxyProtocolVer": 0,
}
},
{
// 写法2
// 类似旧配置文件 ApiConfig 部分
"ApiConfig": {
"ApiHost": "http://127.0.0.1",
"ApiKey": "test",
"NodeID": 33,
"Timeout": 30,
},
// 类似旧配置文件 ControllerConfig 部分
"Options": {
"Core": "sing",
"EnableProxyProtocol": true,
"EnableTFO": true,
"DomainStrategy": "ipv4_only",
// More
}
}
] ]
} }