mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-10-06 13:58:12 +03:00
Infra/conf: Rename inbounds clients to users
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -227,7 +227,7 @@ Inbounds:
|
||||
"port": 1024,
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
"users": [
|
||||
{
|
||||
"id": "5783a3e7-e373-51cd-8642-c83782b807c5"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user