Infra/conf: Rename inbounds accounts to users

This commit is contained in:
Meow
2026-05-06 20:19:43 +08:00
parent 9dc91349a8
commit 0b803a9ff6
6 changed files with 21 additions and 21 deletions
+4 -4
View File
@@ -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
{
+3 -3
View File
@@ -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
{
+4 -4
View File
@@ -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
{
+3 -3
View File
@@ -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
{
+4 -4
View File
@@ -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
{
+3 -3
View File
@@ -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
{