From 4c7b9f5eb9959df7716b2ffd9bb5951a8e409fb9 Mon Sep 17 00:00:00 2001 From: wyx2685 Date: Sat, 19 Jul 2025 04:05:59 +0900 Subject: [PATCH] remove trash example --- example/config.json | 33 ++--- example/config_full.json | 259 --------------------------------- example/config_full_node1.json | 13 -- 3 files changed, 16 insertions(+), 289 deletions(-) delete mode 100644 example/config_full.json delete mode 100644 example/config_full_node1.json diff --git a/example/config.json b/example/config.json index 5d6d96f..88d4207 100644 --- a/example/config.json +++ b/example/config.json @@ -7,14 +7,15 @@ { "Type": "sing", "Log": { - "Level": "error", + "Level": "info", "Timestamp": true }, "NTP": { - "Enable": true, + "Enable": false, "Server": "time.apple.com", "ServerPort": 0 - } + }, + "OriginalPath": "/etc/V2bX/sing_origin.json" } ], "Nodes": [ @@ -27,20 +28,18 @@ "Timeout": 30, "ListenIP": "0.0.0.0", "SendIP": "0.0.0.0", - "EnableProxyProtocol": false, - "EnableDNS": true, - "DomainStrategy": "ipv4_only", - "LimitConfig": { - "EnableRealtime": false, - "SpeedLimit": 0, - "IPLimit": 0, - "ConnLimit": 0, - "EnableDynamicSpeedLimit": false, - "DynamicSpeedLimitConfig": { - "Periodic": 60, - "Traffic": 1000, - "SpeedLimit": 100, - "ExpireTime": 60 + "DeviceOnlineMinTraffic": 200, + "TCPFastOpen": false, + "SniffEnabled": true, + "CertConfig": { + "CertMode": "self", + "RejectUnknownSni": false, + "CertDomain": "example.com", + "CertFile": "/etc/V2bX/fullchain.cer", + "KeyFile": "/etc/V2bX/cert.key", + "Provider": "cloudflare", + "DNSEnv": { + "EnvName": "env1" } } } diff --git a/example/config_full.json b/example/config_full.json deleted file mode 100644 index a188bd7..0000000 --- a/example/config_full.json +++ /dev/null @@ -1,259 +0,0 @@ -{ - "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" - } - ] -} \ No newline at end of file diff --git a/example/config_full_node1.json b/example/config_full_node1.json deleted file mode 100644 index 85b1caf..0000000 --- a/example/config_full_node1.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "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, - "DNSType": "ipv4_only" -} \ No newline at end of file