Pārlūkot izejas kodu

chore(docs): update docs about auth settings

Jacky 9 mēneši atpakaļ
vecāks
revīzija
743daaa56f

+ 12 - 0
docs/guide/config-auth.md

@@ -16,3 +16,15 @@ By default, if you do not set the `IPWhiteList`, all IP addresses are allowed to
 
 Once you set the `IPWhiteList`, only the users from IP addresses in the list and `127.0.0.1` can access the Nginx UI,
 others will receive a `403 Forbidden` error.
+
+## BanThresholdMinutes
+- Type: `int`
+- Default: `10`
+
+By default, if a user fails to log in 10 times within 10 minutes, the user will be banned for 10 minutes.
+
+## MaxAttempts
+- Type: `int`
+- Default: `10`
+
+By default, a user can try to log in 10 times within 10 minutes.

+ 12 - 0
docs/zh_CN/guide/config-auth.md

@@ -16,3 +16,15 @@ IPWhiteList = 2001:0000:130F:0000:0000:09C0:876A:130B
 
 一旦您设置了 `IPWhiteList`,只有列表中和 `127.0.0.1` 的 IP 地址的用户可以访问 Nginx UI,
 其他人将收到 `403 Forbidden` 错误。
+
+## BanThresholdMinutes
+- Type: `int`
+- Default: `10`
+
+默认情况下,如果用户在 10 分钟内登录失败 10 次,用户将被禁止登录 10 分钟。
+
+## MaxAttempts
+- Type: `int`
+- Default: `10`
+
+默认情况下,用户可以在 10 分钟内尝试登录 10 次。

+ 12 - 0
docs/zh_TW/guide/config-auth.md

@@ -15,3 +15,15 @@ IPWhiteList = 2001:0000:130F:0000:0000:09C0:876A:130B
 默認情況下,如果您沒有設置 IPWhiteList,所有 IP 地址都允許訪問 Nginx UI。
 一旦您設置了 IPWhiteList,只有列表中和 `127.0.0.1` 的 IP 地址的用戶可以訪問 Nginx UI,
 其他人將收到 `403 Forbidden` 錯誤。
+
+## BanThresholdMinutes
+- Type: `int`
+- Default: `10`
+
+默認情況下,如果用戶在 10 分鐘內登錄失敗 10 次,用戶將被禁止登錄 10 分鐘。
+
+## MaxAttempts
+- Type: `int`
+- Default: `10`
+
+默認情況下,如果用戶在 10 分鐘內登錄失敗 10 次,用戶將被禁止登錄 10 分鐘。