mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-09-28 18:08:01 +03:00
Document: Deprecated vnext.users
This commit is contained in:
+4
-12
@@ -10,7 +10,7 @@
|
||||
为了避免你的流量被解密,<br>
|
||||
你应该使用 `xray uuid` 或 `uuidgen` 生成一个独一无二的uuid <br>
|
||||
在服务端上,放入 `inbounds[0].settings.users[0].id` 内 <br>
|
||||
在客户端内,放入 `outbounds[0].settings.vnext[0].users[0].id` 内 <br>
|
||||
在客户端内,放入 `outbounds[0].settings.id` 内 <br>
|
||||
:::
|
||||
|
||||
## 服务端配置
|
||||
@@ -62,17 +62,9 @@
|
||||
{
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"vnext": [
|
||||
{
|
||||
"address": "server", // 服务器地址,请修改为你自己的服务器 ip 或域名
|
||||
"port": 10086, // 服务器端口
|
||||
"users": [
|
||||
{
|
||||
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // 记得替换这个字段,使用 `xray uuid` 或 `uuidgen` 生成
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
"address": "server", // 服务器地址,请修改为你自己的服务器 ip 或域名
|
||||
"port": 10086, // 服务器端口
|
||||
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // 记得替换这个字段,使用 `xray uuid` 或 `uuidgen` 生成
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -208,20 +208,12 @@
|
||||
"tag": "proxy",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"vnext": [
|
||||
{
|
||||
"address": "a-name.yourdomain.com", // 替换成你的真实域名
|
||||
"port": 443,
|
||||
"users": [
|
||||
{
|
||||
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid", // 和服务器端的一致
|
||||
"flow": "xtls-rprx-vision",
|
||||
"encryption": "none",
|
||||
"level": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
"address": "a-name.yourdomain.com", // 替换成你的真实域名
|
||||
"port": 443,
|
||||
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid", // 和服务器端的一致
|
||||
"flow": "xtls-rprx-vision",
|
||||
"encryption": "none",
|
||||
"level": 0
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
|
||||
@@ -82,20 +82,12 @@
|
||||
"tag": "proxy-out-vless",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"vnext": [
|
||||
{
|
||||
"address": "a-name.yourdomain.com",
|
||||
"port": 443,
|
||||
"users": [
|
||||
{
|
||||
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"encryption": "none",
|
||||
"level": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
"address": "a-name.yourdomain.com",
|
||||
"port": 443,
|
||||
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"encryption": "none",
|
||||
"level": 0
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
|
||||
@@ -191,18 +191,10 @@ WantedBy=multi-user.target
|
||||
"tag": "nginxtls",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"vnext": [
|
||||
{
|
||||
"address": "127.0.0.1",
|
||||
"port": 6666,
|
||||
"users": [
|
||||
{
|
||||
"id": "uuid",
|
||||
"encryption": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
"address": "127.0.0.1",
|
||||
"port": 6666,
|
||||
"id": "uuid",
|
||||
"encryption": "none"
|
||||
},
|
||||
"streamSettings": {
|
||||
"sockopt": {
|
||||
|
||||
@@ -65,19 +65,11 @@ sudo curl -oL /usr/local/share/xray/geosite.dat https://github.com/Loyalsoldier/
|
||||
"tag": "proxy",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"vnext": [
|
||||
{
|
||||
"address": "服务端域名",
|
||||
"port": 443,
|
||||
"users": [
|
||||
{
|
||||
"id": "UUID",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"encryption": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
"address": "服务端域名",
|
||||
"port": 443,
|
||||
"id": "UUID",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"encryption": "none"
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
|
||||
@@ -68,19 +68,11 @@
|
||||
"tag": "proxy",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"vnext": [
|
||||
{
|
||||
"address": "yourdomain.domain", //改为你自己的域名,直接填写ipv4或ipv6地址也可以
|
||||
"port": 443,
|
||||
"users": [
|
||||
{
|
||||
"id": "uuid", //填写uuid,可通过在终端中输入 xray uuid 生成;此处也支持任意字符串(https://xtls.github.io/config/inbounds/vless.html#userobject)
|
||||
"encryption": "none",
|
||||
"flow": "xtls-rprx-vision"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
"address": "yourdomain.domain", //改为你自己的域名,直接填写ipv4或ipv6地址也可以
|
||||
"port": 443,
|
||||
"id": "uuid", //填写uuid,可通过在终端中输入 xray uuid 生成;此处也支持任意字符串(https://xtls.github.io/config/inbounds/vless.html#userobject)
|
||||
"encryption": "none",
|
||||
"flow": "xtls-rprx-vision"
|
||||
},
|
||||
"streamSettings": {
|
||||
"sockopt": {
|
||||
|
||||
@@ -170,47 +170,39 @@ bash -c "$(curl -L wgcf-cli.vercel.app)"
|
||||
|
||||
```json
|
||||
{
|
||||
"outbounds":[
|
||||
{
|
||||
"protocol":"wireguard",
|
||||
"settings":{
|
||||
"secretKey":"我的私钥",
|
||||
"peers":[
|
||||
{
|
||||
"publicKey":"Warp公钥",
|
||||
"endpoint":"engage.cloudflareclient.com:2408"
|
||||
}
|
||||
],
|
||||
"reserved":[0, 0, 0] // 如果你有的话,粘贴reserved到这里
|
||||
},
|
||||
"streamSettings":{
|
||||
"sockopt":{
|
||||
"dialerProxy":"proxy"
|
||||
}
|
||||
},
|
||||
"tag":"wireguard-1"
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "wireguard",
|
||||
"settings": {
|
||||
"secretKey": "我的私钥",
|
||||
"peers": [
|
||||
{
|
||||
"publicKey": "Warp公钥",
|
||||
"endpoint": "engage.cloudflareclient.com:2408"
|
||||
}
|
||||
],
|
||||
"reserved": [0, 0, 0] // 如果你有的话,粘贴reserved到这里
|
||||
},
|
||||
{
|
||||
"tag":"proxy",
|
||||
"protocol":"vmess",
|
||||
"settings":{
|
||||
"vnext":[
|
||||
{
|
||||
"address":"我的IP",
|
||||
"port":我的端口,
|
||||
"users":[
|
||||
{
|
||||
"id":"我的UUID",
|
||||
"security":"auto"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings":{
|
||||
"network":"tcp"
|
||||
}
|
||||
"streamSettings": {
|
||||
"sockopt": {
|
||||
"dialerProxy": "proxy"
|
||||
}
|
||||
},
|
||||
"tag": "wireguard-1"
|
||||
},
|
||||
{
|
||||
"tag": "proxy",
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"address": "我的IP",
|
||||
"port": 我的端口,
|
||||
"id": "我的UUID",
|
||||
"security": "auto"
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user