2022-12-16 10:14:42 +11:00

71 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 基本对接配置
1.`config.yml`中配置`PanelType:`填写`"V2board"`或者`"NewV2board"`
2. V2board只有V2ray节点类型支持面板配置审计规则其他协议请使用XrayR[本地审计功能](../gong-neng-shuo-ming/rule.md)。
3. 启用vless和xtls请在配置文件中手动启动V2board不支持在线配置同时V2board不支持vless和xtls下发请手动修改客户端配置或者自行寻找其他解决方案。
{% hint style="info" %}
v2board 版本 >= [1.7.0](https://github.com/v2board/v2board/releases/tag/1.7.0)请选择 "NewV2board"
其他版本选择 "V2board"注意老版本API将于 2023.6.1后移除。
{% endhint %}
配置文件详见:[配置文件说明](../xrayr-pei-zhi-wen-jian-shuo-ming/config.md)
### 对接shadowsocks2022
确保v2board 版本 >= [1.7.0](https://github.com/v2board/v2board/releases/tag/1.7.0)XrayR 版本>= [v0.8.8](https://github.com/XrayR-project/XrayR/releases/tag/v0.8.8)`PanelType:`请选择 "NewV2board"。
### 对接vmess+ws
v2board需要在传输协议配置中增加以下内容配置ws的路径
```
{
"path": "/name",
}
```
其中`"name"`换成任意字符串可用于nginx等反代分流。
### 对接vmess+ws+tls
v2board需要在传输协议配置中增加以下内容配置ws的路径和tls的域名
```
{
"path": "/",
"headers": {
"Host": "v2ray.com"
}
}
```
其中`"name"`换成任意字符串可用于nginx等反代分流`"Host"`后面的域名更改为自己的伪装域名。
### 对接vmess+grpc
为了成功支持clash连接在对接vmess+grpc时v2board需要在传输协议配置中增加如下内容
```text
{
"serviceName": "name",
}
```
其中`"name"`换成任意字符串可用于nginx等反代分流。
### 对接vmess+tcp+http
{% hint style="info" %}
原生V2board不支持tcp+http订阅下发请自行寻找解决方法或手动配置客户端文件。
{% endhint %}
在对接vmess+tcp+http时v2board需要在传输协议配置中增加如下内容
```text
{
"header": {
"type": "http",
"request": {},
"response": {}
}
}
```
其中`request``response`中的内容请自行参照[Xray-core文档](https://xtls.github.io/config/transports/tcp.html#httpheaderobject)设置。