mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-02-02 06:48:14 -05:00
complete example
This commit is contained in:
parent
1b3e173a8a
commit
088fb8f848
@ -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,10 +182,54 @@
|
|||||||
{
|
{
|
||||||
// 引用其他配置文件
|
// 引用其他配置文件
|
||||||
"Include": "../example/config_full_node1.json",
|
"Include": "../example/config_full_node1.json",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// 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,
|
||||||
|
// 以上同 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
|
// 写法2
|
||||||
|
|
||||||
// 类似旧配置文件 ApiConfig 部分
|
// 类似旧配置文件 ApiConfig 部分
|
||||||
"ApiConfig": {
|
"ApiConfig": {
|
||||||
"ApiHost": "http://127.0.0.1",
|
"ApiHost": "http://127.0.0.1",
|
||||||
@ -203,25 +241,10 @@
|
|||||||
"Options": {
|
"Options": {
|
||||||
"Core": "sing",
|
"Core": "sing",
|
||||||
"EnableProxyProtocol": true,
|
"EnableProxyProtocol": true,
|
||||||
"EnableTFO": true
|
"EnableTFO": true,
|
||||||
"DomainStrategy": "ipv4_only",
|
"DomainStrategy": "ipv4_only",
|
||||||
// More
|
// More
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
{
|
|
||||||
// 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
|
|
||||||
}*/
|
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user