mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
2f1362067b
Some checks failed
Build and Release / build (386, freebsd) (push) Has been cancelled
Build and Release / build (386, linux) (push) Has been cancelled
Build and Release / build (386, windows) (push) Has been cancelled
Build and Release / build (amd64, darwin) (push) Has been cancelled
Build and Release / build (amd64, freebsd) (push) Has been cancelled
Build and Release / build (amd64, linux) (push) Has been cancelled
Build and Release / build (amd64, windows) (push) Has been cancelled
Build and Release / build (arm, 5, linux) (push) Has been cancelled
Build and Release / build (arm, 6, linux) (push) Has been cancelled
Build and Release / build (arm, 7, freebsd) (push) Has been cancelled
Build and Release / build (arm, 7, linux) (push) Has been cancelled
Build and Release / build (arm64, android) (push) Has been cancelled
Build and Release / build (arm64, darwin) (push) Has been cancelled
Build and Release / build (arm64, freebsd) (push) Has been cancelled
Build and Release / build (arm64, linux) (push) Has been cancelled
Build and Release / build (mips, linux) (push) Has been cancelled
Build and Release / build (mips64, linux) (push) Has been cancelled
Build and Release / build (mips64le, linux) (push) Has been cancelled
Build and Release / build (mipsle, linux) (push) Has been cancelled
Build and Release / build (ppc64, linux) (push) Has been cancelled
Build and Release / build (ppc64le, linux) (push) Has been cancelled
Build and Release / build (riscv64, linux) (push) Has been cancelled
Build and Release / build (s390x, linux) (push) Has been cancelled
259 lines
6.1 KiB
JSON
259 lines
6.1 KiB
JSON
{
|
||
"Log": {
|
||
// V2bX 的日志配置,独立于各 Core 的 log 配置
|
||
|
||
// 日志等级,info, warn, error, none
|
||
"Level": "error",
|
||
// 日志输出路径,默认输出到标准输出
|
||
"Output": ""
|
||
},
|
||
"Cores": [
|
||
{
|
||
// Core类型
|
||
"Type": "sing",
|
||
// Core标识名,可选,如果需要启动多个同类型内核则必填
|
||
"Name": "sing1",
|
||
"Log": {
|
||
// 同 SingBox log 部分配置
|
||
|
||
"Level": "error",
|
||
"Timestamp": true
|
||
},
|
||
"NTP": {
|
||
// 同 SingBox ntp 部分配置
|
||
// VMess VLESS 建议开启
|
||
"Enable": true,
|
||
"Server": "time.apple.com",
|
||
"ServerPort": 0
|
||
},
|
||
"DnsConfigPath": "/etc/V2bX/dns.json",
|
||
// SingBox源配置文件目录,用于引用标准SingBox配置文件
|
||
"OriginalPath": "/etc/V2bX/sing_origin.json"
|
||
},
|
||
{
|
||
"Type": "sing",
|
||
"Name": "sing2",
|
||
"Log": {
|
||
"Level": "info",
|
||
"Timestamp": false
|
||
}
|
||
},
|
||
{
|
||
"Type": "xray",
|
||
"Log": {
|
||
// 同 Xray-core log 部分配置
|
||
|
||
"Level": "error"
|
||
},
|
||
// 静态资源文件目录
|
||
"AssetPath": "",
|
||
// DNS配置文件目录
|
||
"DnsConfigPath": "",
|
||
// 路由配置文件目录
|
||
"RouteConfigPath": "",
|
||
// 本地策略相关配置
|
||
"ConnectionConfig": {
|
||
// 详见 https://xtls.github.io/config/policy.html#levelpolicyobject
|
||
|
||
"handshake": 4,
|
||
"connIdle": 300,
|
||
"uplinkOnly": 2,
|
||
"downlinkOnly": 5,
|
||
"statsUserUplink": false,
|
||
"statsUserDownlink": false,
|
||
"bufferSize": 4
|
||
},
|
||
// Inbound配置文件目录
|
||
"InboundConfigPath": "",
|
||
// Outbound配置文件目录
|
||
"OutboundConfigPath": ""
|
||
}
|
||
],
|
||
"Nodes": [
|
||
// Node配置有两种写法
|
||
{
|
||
// 写法1
|
||
// sing内核
|
||
|
||
// Node标识名,便于查看日志,不填将通过下发的节点配置自动生成
|
||
// 务必注意不要重复,否则会出现问题
|
||
"Name": "sing_node1",
|
||
|
||
// 要使用的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,
|
||
|
||
// 开启 DNS
|
||
"EnableDNS" : true,
|
||
// 设置 Domain Strategy 需要开启 DNS ,默认 AsIS
|
||
// 可选 prefer_ipv4 / prefer_ipv6 / ipv4_only / ipv6_only
|
||
"DomainStrategy": "ipv4_only",
|
||
|
||
// 限制器相关配置
|
||
"LimitConfig": {
|
||
// 开启实时连接数及IP数限制
|
||
"EnableRealtime": false,
|
||
|
||
// 用户速度限制
|
||
"SpeedLimit": 0,
|
||
|
||
// 用户IP限制
|
||
"IPLimit": 0,
|
||
|
||
// 用户连接数限制
|
||
"ConnLimit": 0,
|
||
|
||
// 开启动态限速
|
||
"EnableDynamicSpeedLimit": false,
|
||
|
||
// 动态限速相关配置
|
||
"DynamicSpeedLimitConfig": {
|
||
// 检查周期
|
||
"Periodic": 60,
|
||
|
||
// 检查周期内触发限制的流量数
|
||
"Traffic": 1000,
|
||
|
||
// 触发限制后的速度限制
|
||
"SpeedLimit": 100,
|
||
|
||
// 速度限制过期时间
|
||
"ExpireTime": 60
|
||
|
||
}
|
||
},
|
||
|
||
// 证书相关配置
|
||
"CertConfig": {
|
||
// 证书申请模式,none、http、dns、self
|
||
"CertMode": "none",
|
||
|
||
"RejectUnknownSni": false,
|
||
|
||
// 证书域名
|
||
"CertDomain": "test.com",
|
||
|
||
// 证书文件目录
|
||
"CertFile": "/etc/V2bX/cert/1.pem",
|
||
|
||
// 密钥文件目录
|
||
"KeyFile": "/etc/V2bX/cert/1.key",
|
||
|
||
// 申请证书时使用的用户邮箱
|
||
"Email": "1@test.com",
|
||
|
||
// DNS解析提供者
|
||
"Provider": "cloudflare",
|
||
|
||
// DNS解析提供者的环境变量,详见 https://go-acme.github.io/lego/dns/
|
||
"DNSEnv": {
|
||
"EnvName": "env1"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
// xray内核
|
||
|
||
"Name": "xray_node1",
|
||
"Core": "xray",
|
||
"CoreName": "",
|
||
"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
|
||
}
|
||
},
|
||
{
|
||
// 引用本地其他配置文件
|
||
"Include": "../example/config_full_node1.json"
|
||
},
|
||
{
|
||
// 通过Http引用远端配置文件
|
||
"Include": "http://127.0.0.1:11451/config_full_node1.json"
|
||
}
|
||
]
|
||
} |