From 0b803a9ff69fab0e034a606473997824be970007 Mon Sep 17 00:00:00 2001 From: Meow <197331664+Meo597@users.noreply.github.com> Date: Wed, 6 May 2026 20:19:43 +0800 Subject: [PATCH] Infra/conf: Rename inbounds `accounts` to `users` --- docs/config/inbounds/http.md | 8 ++++---- docs/config/inbounds/socks.md | 6 +++--- docs/en/config/inbounds/http.md | 8 ++++---- docs/en/config/inbounds/socks.md | 6 +++--- docs/ru/config/inbounds/http.md | 8 ++++---- docs/ru/config/inbounds/socks.md | 6 +++--- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/config/inbounds/http.md b/docs/config/inbounds/http.md index f0cb62ac..760d17f5 100644 --- a/docs/config/inbounds/http.md +++ b/docs/config/inbounds/http.md @@ -23,7 +23,7 @@ HTTP 协议。 ```json { - "accounts": [ + "users": [ { "user": "my-username", "pass": "my-password" @@ -34,11 +34,11 @@ HTTP 协议。 } ``` -> `accounts`: \[[AccountObject](#accountobject)\] +> `users`: \[[UserObject](#userobject)\] 一个数组,数组中每个元素为一个用户帐号。默认值为空。 -当 `accounts` 非空时,HTTP 代理将对入站连接进行 Basic Authentication 验证。 +当 `users` 非空时,HTTP 代理将对入站连接进行 Basic Authentication 验证。 > `allowTransparent`: true | false @@ -54,7 +54,7 @@ HTTP 协议。 userLevel 的值, 对应 [policy](../policy.md#policyobject) 中 `level` 的值。 如不指定, 默认为 0。 -### AccountObject +### UserObject ```json { diff --git a/docs/config/inbounds/socks.md b/docs/config/inbounds/socks.md index 451e4286..9af1e317 100644 --- a/docs/config/inbounds/socks.md +++ b/docs/config/inbounds/socks.md @@ -13,7 +13,7 @@ ```json { "auth": "noauth", - "accounts": [ + "users": [ { "user": "my-username", "pass": "my-password" @@ -33,7 +33,7 @@ Socks 协议的认证方式,支持 `"noauth"` 匿名方式和 `"password"` 用 默认值为 `"noauth"`。 -> `accounts`: \[ [AccountObject](#accountobject) \] +> `users`: \[ [UserObject](#userobject) \] 一个数组,数组中每个元素为一个用户帐号。 @@ -61,7 +61,7 @@ Socks 协议的认证方式,支持 `"noauth"` 匿名方式和 `"password"` 用 userLevel 的值, 对应 [policy](../policy.md#policyobject) 中 `level` 的值。 如不指定, 默认为 0。 -### AccountObject +### UserObject ```json { diff --git a/docs/en/config/inbounds/http.md b/docs/en/config/inbounds/http.md index 06d06da6..b19a18b4 100644 --- a/docs/en/config/inbounds/http.md +++ b/docs/en/config/inbounds/http.md @@ -23,7 +23,7 @@ Use the following environment variables in Linux to enable a global HTTP proxy f ```json { - "accounts": [ + "users": [ { "user": "my-username", "pass": "my-password" @@ -34,11 +34,11 @@ Use the following environment variables in Linux to enable a global HTTP proxy f } ``` -> `accounts`: \[[AccountObject](#accountobject)\] +> `users`: \[[UserObject](#userobject)\] An array where each element is a user account. Default value is empty. -When `accounts` is not empty, the HTTP proxy will perform Basic Authentication on inbound connections. +When `users` is not empty, the HTTP proxy will perform Basic Authentication on inbound connections. > `allowTransparent`: true | false @@ -54,7 +54,7 @@ User level. Connections will use the [Local Policy](../policy.md#levelpolicyobje The value of `userLevel` corresponds to the value of `level` in [policy](../policy.md#policyobject). If not specified, the default is 0. -### AccountObject +### UserObject ```json { diff --git a/docs/en/config/inbounds/socks.md b/docs/en/config/inbounds/socks.md index 08ae57c3..77b7e599 100644 --- a/docs/en/config/inbounds/socks.md +++ b/docs/en/config/inbounds/socks.md @@ -13,7 +13,7 @@ A more meaningful usage of `Socks` inbound is to listen within a LAN or on the l ```json { "auth": "noauth", - "accounts": [ + "users": [ { "user": "my-username", "pass": "my-password" @@ -33,7 +33,7 @@ When using password, HTTP requests sent to this inbound will also require the sa Default value is `"noauth"`. -> `accounts`: \[ [AccountObject](#accountobject) \] +> `users`: \[ [UserObject](#userobject) \] An array where each element is a user account. @@ -61,7 +61,7 @@ User level. Connections will use the [Local Policy](../policy.md#levelpolicyobje The value of `userLevel` corresponds to the value of `level` in [policy](../policy.md#policyobject). If not specified, the default is 0. -### AccountObject +### UserObject ```json { diff --git a/docs/ru/config/inbounds/http.md b/docs/ru/config/inbounds/http.md index 2a789700..a9ddd2f6 100644 --- a/docs/ru/config/inbounds/http.md +++ b/docs/ru/config/inbounds/http.md @@ -23,7 +23,7 @@ ```json { - "accounts": [ + "users": [ { "user": "my-username", "pass": "my-password" @@ -34,11 +34,11 @@ } ``` -> `accounts`: \[[AccountObject](#accountobject)\] +> `users`: \[[UserObject](#userobject)\] Массив, каждый элемент которого представляет собой учетную запись пользователя. Значение по умолчанию: пустой массив. -Если `accounts` не пуст, HTTP-прокси будет выполнять проверку подлинности Basic Authentication для входящих соединений. +Если `users` не пуст, HTTP-прокси будет выполнять проверку подлинности Basic Authentication для входящих соединений. > `allowTransparent`: true | false @@ -54,7 +54,7 @@ Значение userLevel соответствует значению `level` в разделе [policy](../policy.md#policyobject). Если не указано, используется значение по умолчанию - 0. -### AccountObject +### UserObject ```json { diff --git a/docs/ru/config/inbounds/socks.md b/docs/ru/config/inbounds/socks.md index 8092b1ba..7a222868 100644 --- a/docs/ru/config/inbounds/socks.md +++ b/docs/ru/config/inbounds/socks.md @@ -13,7 +13,7 @@ ```json { "auth": "noauth", - "accounts": [ + "users": [ { "user": "my-username", "pass": "my-password" @@ -33,7 +33,7 @@ Значение по умолчанию — `"noauth"`. -> `accounts`: \[ [AccountObject](#accountobject) \] +> `users`: \[ [UserObject](#userobject) \] Массив, каждый элемент которого представляет собой учетную запись пользователя. @@ -61,7 +61,7 @@ Значение `userLevel` соответствует значению `level` в [policy](../policy.md#policyobject). Если не указано, по умолчанию используется значение `0`. -### AccountObject +### UserObject ```json {