From 088fb8f848c41956c8a8901306af431ac24d0eb5 Mon Sep 17 00:00:00 2001 From: Yuzuki616 Date: Sat, 16 Sep 2023 20:53:09 +0800 Subject: [PATCH] complete example --- example/config_full.json | 109 ++++++++++++++++++++++++--------------- 1 file changed, 66 insertions(+), 43 deletions(-) diff --git a/example/config_full.json b/example/config_full.json index 7f90cef..c84404e 100644 --- a/example/config_full.json +++ b/example/config_full.json @@ -4,7 +4,6 @@ // 日志等级,info, warn, error, none "Level": "error", - // 日志输出路径,默认输出到标准输出 "Output": "" }, @@ -12,10 +11,8 @@ { // Core类型 "Type": "sing", - // Core标识名,可选,如果需要启动多个同类型内核则必填 "Name": "sing1", - "Log": { // 同 SingBox log 部分配置 @@ -29,7 +26,6 @@ "Server": "time.apple.com", "ServerPort": 0 }, - // SingBox源配置文件目录,用于引用标准SingBox配置文件 "OriginalPath": "/etc/V2bX/sing_origin.json" }, @@ -50,13 +46,10 @@ }, // 静态资源文件目录 "AssetPath": "", - // DNS配置文件目录 "DnsConfigPath": "", - // 路由配置文件目录 "RouteConfigPath": "", - // 本地策略相关配置 "ConnectionConfig": { // 详见 https://xtls.github.io/config/policy.html#levelpolicyobject @@ -69,10 +62,8 @@ "statsUserDownlink": false, "bufferSize": 4 }, - // Inbound配置文件目录 "InboundConfigPath": "", - // Outbound配置文件目录 "OutboundConfigPath": "" } @@ -81,6 +72,7 @@ // Node配置有两种写法 { // 写法1 + // sing内核 // Node标识名,便于查看日志,不填将通过下发的节点配置自动生成 // 务必注意不要重复,否则会出现问题 @@ -155,6 +147,7 @@ // 速度限制过期时间 "ExpireTime": 60 + } }, @@ -162,6 +155,7 @@ "CertConfig": { // 证书申请模式,none、http、dns、self "CertMode": "none", + "RejectUnknownSni": false, // 证书域名 @@ -188,40 +182,69 @@ { // 引用其他配置文件 "Include": "../example/config_full_node1.json", - } - /*, - { - // 写法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 + }, + { + // xray内核 - "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 - // More - }*/ + "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, + // 以上同 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 + } + } ] } \ No newline at end of file