Infra/conf: Rename inbounds clients to users

This commit is contained in:
Meow
2026-05-06 12:25:52 +08:00
parent 64d0e2c213
commit 0177cec440
39 changed files with 110 additions and 110 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
# Hysteria
::: tip
`hysteria protocol` 本身无认证,`clients` 仅在搭配 `hysteria` 传输层时生效
`hysteria protocol` 本身无认证,`users` 仅在搭配 `hysteria` 传输层时生效
:::
## InboundConfigurationObject
@@ -9,7 +9,7 @@
```json
{
"version": 2,
"clients": [
"users": [
{
"auth": "5783a3e7-e373-51cd-8642-c83782b807c5",
"level": 0,
@@ -23,11 +23,11 @@
Hysteria 版本,必须为 2。
> `clients`: \[ [ClientObject](#clientobject) \]
> `users`: \[ [UserObject](#userobject) \]
一个数组,代表一组服务端认可的用户。
### ClientObject
### UserObject
```json
{
+2 -2
View File
@@ -37,7 +37,7 @@ Shadowsocks 2022 新协议格式提升了性能并带有完整的重放保护,
"password": "114514",
"level": 0,
"email": "love@xray.com",
"clients": [
"users": [
{
"password": "1919810",
"method": "aes-128-gcm"
@@ -88,7 +88,7 @@ Shadowsocks 2022 新协议格式提升了性能并带有完整的重放保护,
用户邮箱,用于区分不同用户的流量(日志、统计)。
## ClientObject
## UserObject
```json
{
+5 -5
View File
@@ -10,7 +10,7 @@ Trojan 被设计工作在正确配置的加密 TLS 隧道
```json
{
"clients": [
"users": [
{
"password": "password",
"email": "love@xray.com",
@@ -25,11 +25,11 @@ Trojan 被设计工作在正确配置的加密 TLS 隧道
}
```
> `clients`: \[ [ClientObject](#clientobject) \]
> `users`: \[ [UserObject](#userobject) \]
一个数组,代表一组服务端认可的用户.
其中每一项是一个用户 [ClientObject](#clientobject)。
其中每一项是一个用户 [UserObject](#userobject)。
> `fallbacks`: \[ [FallbackObject](../features/fallback.md) \]
@@ -41,7 +41,7 @@ Xray 的 Trojan 有完整的 fallbacks 支持,配置方式完全一致。
触发回落的条件也与 VLESS 类似:首包长度 < 58 或第 57 个字节不为 `\r`(因为 Trojan 没有协议版本)或身份认证失败。
:::
### ClientObject
### UserObject
```json
{
@@ -60,7 +60,7 @@ Xray 的 Trojan 有完整的 fallbacks 支持,配置方式完全一致。
邮件地址,可选,用于标识用户
::: danger
如果存在多个 ClientObject, 请注意 email 不可以重复。
如果存在多个 UserObject, 请注意 email 不可以重复。
:::
> `level`: number
+4 -4
View File
@@ -8,7 +8,7 @@ VLESS 是一个无状态的轻量传输协议,它分为入站和出站两部
```json
{
"clients": [
"users": [
{
"id": "5783a3e7-e373-51cd-8642-c83782b807c5",
"level": 0,
@@ -26,11 +26,11 @@ VLESS 是一个无状态的轻量传输协议,它分为入站和出站两部
}
```
> `clients`: \[ [ClientObject](#clientobject) \]
> `users`: \[ [UserObject](#userobject) \]
一个数组,代表一组服务端认可的用户.
其中每一项是一个用户 [ClientObject](#clientobject)。
其中每一项是一个用户 [UserObject](#userobject)。
> `decryption`: "none"
@@ -57,7 +57,7 @@ VLESS 是一个无状态的轻量传输协议,它分为入站和出站两部
一个数组,包含一系列强大的回落分流配置(可选)。
fallbacks 的具体配置请点击 [FallbackObject](../features/fallback.md#fallbacks-配置)
### ClientObject
### UserObject
```json
{
+6 -6
View File
@@ -10,7 +10,7 @@ VMess 依赖于系统时间,请确保使用 Xray 的系统 UTC 时间误差在
```json
{
"clients": [
"users": [
{
"id": "5783a3e7-e373-51cd-8642-c83782b807c5",
"level": 0,
@@ -23,19 +23,19 @@ VMess 依赖于系统时间,请确保使用 Xray 的系统 UTC 时间误差在
}
```
> `clients`: \[ [ClientObject](#clientobject) \]
> `users`: \[ [UserObject](#userobject) \]
一个数组,代表一组服务端认可的用户.
其中每一项是一个用户[ClientObject](#clientobject)。
其中每一项是一个用户[UserObject](#userobject)。
当此配置用作动态端口时,Xray 会自动创建用户。
> `default`: [DefaultObject](#defaultobject)
可选,clients 的默认配置。仅在配合`detour`时有效。
可选,`users` 的默认配置。仅在配合 `detour` 时有效。
### ClientObject
### UserObject
```json
{
@@ -53,7 +53,7 @@ Vmess 的用户 ID,可以是任意小于 30 字节的字符串, 也可以是
自定义字符串和其映射的 UUID 是等价的, 这意味着你将可以这样在配置文件中写 id 来标识同一用户,即
- 写 `"id": "我爱🍉老师1314"`,
- 或写 `"id": "5783a3e7-e373-51cd-8642-c83782b807c5"` (此 UUID 是 `我爱🍉老师1314` 的 UUID 映射)
- 或写 `"id": "5783a3e7-e373-51cd-8642-c83782b807c5"` (此 UUID 是 `我爱🍉老师1314` 的 UUID 映射)
:::
其映射标准在 [VLESS UUID 映射标准:将自定义字符串映射为一个 UUIDv5](https://github.com/XTLS/Xray-core/issues/158)
+1 -1
View File
@@ -226,7 +226,7 @@ inbound:
"port": 1024,
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "5783a3e7-e373-51cd-8642-c83782b807c5"
}
+1 -1
View File
@@ -37,7 +37,7 @@ Hysteria 版本,必须为 2。
Hysteria 认证密码,服务端和客户端需要保持一致。
搭配 `hysteria inbound` 时将会被 `clients` 覆盖 (如果存在)
搭配 `hysteria inbound` 时将会被 `users` 覆盖 (如果存在)
> `udpIdleTimeout`: number
+2 -2
View File
@@ -9,7 +9,7 @@
::: danger
为了避免你的流量被解密,<br>
你应该使用 `xray uuid` 或 `uuidgen` 生成一个独一无二的uuid <br>
在服务端上,放入 `inbounds[0].settings.clients[0].id` 内 <br>
在服务端上,放入 `inbounds[0].settings.users[0].id` 内 <br>
在客户端内,放入 `outbounds[0].settings.vnext[0].users[0].id` 内 <br>
:::
@@ -24,7 +24,7 @@
"port": 10086, // 服务器监听端口
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // 记得替换这个字段,使用 `xray uuid` 或 `uuidgen` 生成
}
+1 -1
View File
@@ -196,7 +196,7 @@
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "", // 填写你的 UUID
"flow": "xtls-rprx-vision",
+6 -6
View File
@@ -13,7 +13,7 @@
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
// ... ...
],
"decryption": "none",
@@ -140,7 +140,7 @@
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "", // 填写你的 UUID
"flow": "xtls-rprx-vision",
@@ -235,7 +235,7 @@
"listen": "127.0.0.1",
"protocol": "trojan",
"settings": {
"clients": [
"users": [
{
"password": "", // 填写你的密码
"level": 0,
@@ -270,7 +270,7 @@
"listen": "127.0.0.1",
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "", // 填写你的 UUID
"level": 0,
@@ -298,7 +298,7 @@
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "", // 填写你的 UUID
"level": 0,
@@ -336,7 +336,7 @@
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "", // 填写你的 UUID
"level": 0,
+2 -2
View File
@@ -80,7 +80,7 @@ acme.sh --install-cert -d example.com --fullchain-file /etc/ssl/xray/cert.pem --
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "UUID",
"flow": "xtls-rprx-vision"
@@ -135,7 +135,7 @@ acme.sh --install-cert -d example.com --fullchain-file /etc/ssl/xray/cert.pem --
"port": 5000,
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "UUID"
}
@@ -112,7 +112,7 @@ WantedBy=multi-user.target
"listen": "/dev/shm/vless.sock,0666",
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "uuid"
}
@@ -74,7 +74,7 @@
"port": 443,
"users": [
{
"id": "uuid", //填写uuid,可通过在终端中输入 xray uuid 生成;此处也支持任意字符串(https://xtls.github.io/config/inbounds/vless.html#clientobject)
"id": "uuid", //填写uuid,可通过在终端中输入 xray uuid 生成;此处也支持任意字符串(https://xtls.github.io/config/inbounds/vless.html#userobject)
"encryption": "none",
"flow": "xtls-rprx-vision"
}
@@ -220,7 +220,7 @@
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "uuid", //与客户端相同
"flow": "xtls-rprx-vision"
+4 -4
View File
@@ -1,7 +1,7 @@
# Hysteria
::: tip
The `hysteria protocol` itself has no authentication; `clients` only take effect when used with the `hysteria` transport layer.
The `hysteria protocol` itself has no authentication; `users` only take effect when used with the `hysteria` transport layer.
:::
## InboundConfigurationObject
@@ -9,7 +9,7 @@ The `hysteria protocol` itself has no authentication; `clients` only take effect
```json
{
"version": 2,
"clients": [
"users": [
{
"auth": "5783a3e7-e373-51cd-8642-c83782b807c5",
"level": 0,
@@ -23,11 +23,11 @@ The `hysteria protocol` itself has no authentication; `clients` only take effect
Hysteria version, must be 2.
> `clients`: \[ [ClientObject](#clientobject) \]
> `users`: \[ [UserObject](#userobject) \]
An array representing a group of users approved by the server.
### ClientObject
### UserObject
```json
{
+2 -2
View File
@@ -37,7 +37,7 @@ Under the "none" encryption method, traffic will be transmitted in plain text. T
"password": "114514",
"level": 0,
"email": "love@xray.com",
"clients": [
"users": [
{
"password": "1919810",
"method": "aes-128-gcm"
@@ -88,7 +88,7 @@ The value of `level` corresponds to the `level` value in [policy](../policy.md#l
User email, used to distinguish traffic from different users (logs, statistics).
## ClientObject
## UserObject
```json
{
+5 -5
View File
@@ -10,7 +10,7 @@ Trojan is designed to work over correctly configured encrypted TLS tunnels.
```json
{
"clients": [
"users": [
{
"password": "password",
"email": "love@xray.com",
@@ -25,11 +25,11 @@ Trojan is designed to work over correctly configured encrypted TLS tunnels.
}
```
> `clients`: \[ [ClientObject](#clientobject) \]
> `users`: \[ [UserObject](#userobject) \]
An array representing a group of users accepted by the server.
Each item is a [ClientObject](#clientobject).
Each item is a [UserObject](#userobject).
> `fallbacks`: \[ [FallbackObject](../features/fallback.md) \]
@@ -41,7 +41,7 @@ Xray's Trojan has complete support for fallbacks, and the configuration method i
The conditions for triggering fallback are also similar to VLESS: the length of the first packet < 58, OR the 57th byte is not `\r` (because Trojan has no protocol version), OR authentication fails.
:::
### ClientObject
### UserObject
```json
{
@@ -60,7 +60,7 @@ Required, any string.
Email address, optional, used to identify the user.
::: danger
If there are multiple ClientObjects, please note that emails must not be duplicated.
If there are multiple UserObjects, please note that emails must not be duplicated.
:::
> `level`: number
+4 -4
View File
@@ -8,7 +8,7 @@ Unlike [VMess](./vmess.md), VLESS does not depend on system time. The authentica
```json
{
"clients": [
"users": [
{
"id": "5783a3e7-e373-51cd-8642-c83782b807c5",
"level": 0,
@@ -26,11 +26,11 @@ Unlike [VMess](./vmess.md), VLESS does not depend on system time. The authentica
}
```
> `clients`: \[ [ClientObject](#clientobject) \]
> `users`: \[ [UserObject](#userobject) \]
An array representing a group of users approved by the server.
Each item is a user [ClientObject](#clientobject).
Each item is a user [UserObject](#userobject).
> `decryption`: "none"
@@ -58,7 +58,7 @@ The last block is identified by the core as the parameter used to authenticate t
An array containing a series of powerful fallback distribution configurations (optional).
For specific fallback configurations, please click [FallbackObject](../features/fallback.md#fallbacks-configuration).
### ClientObject
### UserObject
```json
{
+5 -5
View File
@@ -10,7 +10,7 @@ VMess depends on system time. Please ensure that the system UTC time of the devi
```json
{
"clients": [
"users": [
{
"id": "5783a3e7-e373-51cd-8642-c83782b807c5",
"level": 0,
@@ -23,19 +23,19 @@ VMess depends on system time. Please ensure that the system UTC time of the devi
}
```
> `clients`: \[ [ClientObject](#clientobject) \]
> `users`: \[ [UserObject](#userobject) \]
An array representing a group of users accepted by the server.
Each item is a [ClientObject](#clientobject).
Each item is a [UserObject](#userobject).
When this configuration is used for dynamic ports, Xray will automatically create users.
> `default`: [DefaultObject](#defaultobject)
Optional. Default configuration for clients. Only valid when used in conjunction with `detour`.
Optional. Default configuration for `users`. Only valid when used in conjunction with `detour`.
### ClientObject
### UserObject
```json
{
+1 -1
View File
@@ -227,7 +227,7 @@ Inbounds:
"port": 1024,
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "5783a3e7-e373-51cd-8642-c83782b807c5"
}
+1 -1
View File
@@ -37,7 +37,7 @@ Hysteria version, must be 2.
Hysteria authentication password. Must be consistent between the server and the client.
When used with `hysteria inbound`, it will be overridden by `clients` (if it exists).
When used with `hysteria inbound`, it will be overridden by `users` (if it exists).
> `udpIdleTimeout`: number
+2 -2
View File
@@ -9,7 +9,7 @@ To configure more complex features, please refer to the detailed instructions in
::: danger
To avoid your traffic being decrypted,<br>
You should use `xray uuid` or `uuidgen` to generate a unique UUID.<br>
On the server side, put it in `inbounds[0].settings.clients[0].id`.<br>
On the server side, put it in `inbounds[0].settings.users[0].id`.<br>
On the client side, put it in `outbounds[0].settings.vnext[0].users[0].id`.<br>
:::
@@ -24,7 +24,7 @@ You need a server outside the firewall to run the server-side Xray. The configur
"port": 10086, // Server listening port
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // Remember to replace this field, generate using `xray uuid` or `uuidgen`
}
+1 -1
View File
@@ -190,7 +190,7 @@ First, various configurations can refer to the [official VLESS configuration exa
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "", // Fill in your UUID
"flow": "xtls-rprx-vision",
+6 -6
View File
@@ -13,7 +13,7 @@ If you used the [Xray Configuration](../level-0/ch07-xray-server.md#_7-4-configu
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
// ... ...
],
"decryption": "none",
@@ -140,7 +140,7 @@ Now that you understand what the [Perfect Form of Fallback] is, you can get your
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "", // Fill in your UUID
"flow": "xtls-rprx-vision",
@@ -235,7 +235,7 @@ How do we explain this configuration in plain language?
"listen": "127.0.0.1",
"protocol": "trojan",
"settings": {
"clients": [
"users": [
{
"password": "", // Fill in your password
"level": 0,
@@ -270,7 +270,7 @@ How do we explain this configuration in plain language?
"listen": "127.0.0.1",
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "", // Fill in your UUID
"level": 0,
@@ -298,7 +298,7 @@ How do we explain this configuration in plain language?
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "", // Fill in your UUID
"level": 0,
@@ -336,7 +336,7 @@ How do we explain this configuration in plain language?
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "", // Fill in your UUID
"level": 0,
@@ -80,7 +80,7 @@ acme.sh --install-cert -d example.com --fullchain-file /etc/ssl/xray/cert.pem --
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "UUID",
"flow": "xtls-rprx-vision"
@@ -135,7 +135,7 @@ acme.sh --install-cert -d example.com --fullchain-file /etc/ssl/xray/cert.pem --
"port": 5000,
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "UUID"
}
@@ -111,7 +111,7 @@ Enable auto-start on boot:
"listen": "/dev/shm/vless.sock,0666",
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "uuid"
}
@@ -76,7 +76,7 @@ If the Xray program is not installed on the side router, you can manually downlo
"port": 443,
"users": [
{
"id": "uuid", // Fill in UUID. Can be generated by typing 'xray uuid' in terminal; Arbitrary strings are also supported (https://xtls.github.io/en/config/inbounds/vless.html#clientobject)
"id": "uuid", // Fill in UUID. Can be generated by typing 'xray uuid' in terminal; Arbitrary strings are also supported (https://xtls.github.io/en/config/inbounds/vless.html#userobject)
"encryption": "none",
"flow": "xtls-rprx-vision"
}
@@ -222,7 +222,7 @@ If the Xray program is not installed on the side router, you can manually downlo
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "uuid", // Same as client
"flow": "xtls-rprx-vision"
+3 -3
View File
@@ -9,7 +9,7 @@
```json
{
"version": 2,
"clients": [
"users": [
{
"auth": "5783a3e7-e373-51cd-8642-c83782b807c5",
"level": 0,
@@ -23,11 +23,11 @@
Версия Hysteria, должна быть равна 2.
> `clients`: \[ [ClientObject](#clientobject) \]
> `users`: \[ [UserObject](#userobject) \]
Массив, представляющий группу пользователей, одобренных сервером.
### ClientObject
### UserObject
```json
{
+2 -2
View File
@@ -37,7 +37,7 @@
"password": "114514",
"level": 0,
"email": "love@xray.com",
"clients": [
"users": [
{
"password": "1919810",
"method": "aes-128-gcm"
@@ -86,7 +86,7 @@
Адрес электронной почты пользователя, используется для разделения трафика разных пользователей (журналы, статистика).
## ClientObject
## UserObject
```json
{
+5 -5
View File
@@ -10,7 +10,7 @@ Trojan предназначен для работы в правильно нас
```json
{
"clients": [
"users": [
{
"password": "password",
"email": "love@xray.com",
@@ -25,11 +25,11 @@ Trojan предназначен для работы в правильно нас
}
```
> `clients`: \[ [ClientObject](#clientobject) \]
> `users`: \[ [UserObject](#userobject) \]
Массив, представляющий группу пользователей, одобренных сервером.
Каждый элемент в массиве - это пользователь [ClientObject](#clientobject).
Каждый элемент в массиве - это пользователь [UserObject](#userobject).
> `fallbacks`: \[ [FallbackObject](../features/fallback.md) \]
@@ -41,7 +41,7 @@ Trojan в Xray имеет полную поддержку fallbacks, конфи
Условия запуска fallback также аналогичны VLESS: длина первого пакета < 58 или 57-й байт не равен `\r` (поскольку Trojan не имеет версии протокола) или ошибка аутентификации.
:::
### ClientObject
### UserObject
```json
{
@@ -60,7 +60,7 @@ Trojan в Xray имеет полную поддержку fallbacks, конфи
Адрес электронной почты, необязательный параметр, используется для идентификации пользователя.
::: danger
Если существует несколько объектов ClientObject, убедитесь, что адреса электронной почты не дублируются.
Если существует несколько объектов UserObject, убедитесь, что адреса электронной почты не дублируются.
:::
> `level`: number
+6 -6
View File
@@ -9,7 +9,7 @@ VLESS - это легкий транспортный протокол без с
```json
{
"flow": "xtls-rprx-vision",
"clients": [
"users": [
{
"id": "5783a3e7-e373-51cd-8642-c83782b807c5",
"level": 0,
@@ -31,19 +31,19 @@ VLESS - это легкий транспортный протокол без с
Режим управления потоком, используется для выбора алгоритма XTLS.
Это работает аналогично настройке внутри каждого клиента [ClientObject](#clientobject), но задается глобально для всех пользователей данного inbounds.
Если параметр отсутствует, ядро будет использовать значение flow, указанное индивидуально внутри каждого объекта [ClientObject](#clientobject).
Это работает аналогично настройке внутри каждого клиента [UserObject](#userobject), но задается глобально для всех пользователей данного inbounds.
Если параметр отсутствует, ядро будет использовать значение flow, указанное индивидуально внутри каждого объекта [UserObject](#userobject).
В настоящее время доступны следующие режимы:
- Отсутствует `flow` или пустая строка: используется обычный TLS-прокси
- `xtls-rprx-vision`: используется новый режим XTLS, включает случайное заполнение внутреннего рукопожатия
> `clients`: \[ [ClientObject](#clientobject) \]
> `users`: \[ [UserObject](#userobject) \]
Массив, представляющий группу пользователей, одобренных сервером.
Каждый элемент является пользователем [ClientObject](#clientobject).
Каждый элемент является пользователем [UserObject](#userobject).
> `decryption`: "none"
@@ -71,7 +71,7 @@ VLESS - это легкий транспортный протокол без с
Массив, содержащий ряд конфигураций fallback-маршрутизации (необязательно).
Подробную информацию о настройке fallbacks см. в разделе [FallbackObject](../features/fallback.md#fallbacks-конфигурация).
### ClientObject
### UserObject
```json
{
+5 -5
View File
@@ -10,7 +10,7 @@ VMess полагается на системное время. Убедитес
```json
{
"clients": [
"users": [
{
"id": "5783a3e7-e373-51cd-8642-c83782b807c5",
"level": 0,
@@ -23,19 +23,19 @@ VMess полагается на системное время. Убедитес
}
```
> `clients`: \[ [ClientObject](#clientobject) \]
> `users`: \[ [UserObject](#userobject) \]
Массив, представляющий группу пользователей, одобренных сервером.
Каждый элемент в массиве - это пользователь [ClientObject](#clientobject).
Каждый элемент в массиве - это пользователь [UserObject](#userobject).
Когда эта конфигурация используется для динамических портов, Xray будет автоматически создавать пользователей.
> `default`: [DefaultObject](#defaultobject)
Необязательно. Конфигурация по умолчанию для клиентов. Действует только при использовании с `detour`.
Необязательно. Конфигурация по умолчанию для `users`. Действует только при использовании с `detour`.
### ClientObject
### UserObject
```json
{
+1 -1
View File
@@ -227,7 +227,7 @@ inbound:
"port": 1024,
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "5783a3e7-e373-51cd-8642-c83782b807c5"
}
+1 -1
View File
@@ -37,7 +37,7 @@
Пароль аутентификации Hysteria, должен совпадать на сервере и клиенте.
При использовании с `hysteria inbound` будет переопределён `clients` (если он существует).
При использовании с `hysteria inbound` будет переопределён `users` (если он существует).
> `udpIdleTimeout`: number
+2 -2
View File
@@ -9,7 +9,7 @@
::: danger
Во избежание расшифровки вашего трафика <br>
следует сгенерировать уникальный UUID с помощью команды `xray uuid` или `uuidgen`, <br>
который затем нужно вставить на стороне сервера в поле `inbounds[0].settings.clients[0].id`, <br>
который затем нужно вставить на стороне сервера в поле `inbounds[0].settings.users[0].id`, <br>
а на стороне клиента - в поле `outbounds[0].settings.vnext[0].users[0].id`. <br>
:::
@@ -24,7 +24,7 @@
"port": 10086, // Порт, который слушает сервер
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // Не забудьте заменить это поле, сгенерировав UUID с помощью `xray uuid` или `uuidgen`
}
+1 -1
View File
@@ -190,7 +190,7 @@ Xray основан на проекте с открытым исходным к
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "", // Укажите свой UUID
"flow": "xtls-rprx-vision",
+6 -6
View File
@@ -13,7 +13,7 @@
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
// ... ...
],
"decryption": "none",
@@ -140,7 +140,7 @@
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "", // Укажите свой UUID
"flow": "xtls-rprx-vision",
@@ -235,7 +235,7 @@
"listen": "127.0.0.1",
"protocol": "trojan",
"settings": {
"clients": [
"users": [
{
"password": "", // Укажите свой пароль
"level": 0,
@@ -270,7 +270,7 @@
"listen": "127.0.0.1",
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "", // Укажите свой UUID
"level": 0,
@@ -298,7 +298,7 @@
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "", // Укажите свой UUID
"level": 0,
@@ -336,7 +336,7 @@
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "", // Укажите свой UUID
"level": 0,
@@ -80,7 +80,7 @@ acme.sh --install-cert -d example.com --fullchain-file /etc/ssl/xray/cert.pem --
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "UUID",
"flow": "xtls-rprx-vision"
@@ -135,7 +135,7 @@ acme.sh --install-cert -d example.com --fullchain-file /etc/ssl/xray/cert.pem --
"port": 5000,
"protocol": "vmess",
"settings": {
"clients": [
"users": [
{
"id": "UUID"
}
@@ -112,7 +112,7 @@ WantedBy=multi-user.target
"listen": "/dev/shm/vless.sock,0666",
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "uuid"
}
@@ -77,7 +77,7 @@
"users": [
{
"id": "uuid", // Введите UUID, который можно сгенерировать, выполнив команду xray uuid в терминале.
// Также поддерживаются произвольные строки (https://xtls.github.io/config/inbounds/vless.html#clientobject).
// Также поддерживаются произвольные строки (https://xtls.github.io/config/inbounds/vless.html#userobject).
"encryption": "none",
"flow": "xtls-rprx-vision"
}
@@ -226,7 +226,7 @@
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
"users": [
{
"id": "uuid", // Должен совпадать с UUID клиента.
"flow": "xtls-rprx-vision"