Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ginuerzh committed Nov 18, 2023
1 parent 233242d commit 04c3317
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/concepts/limiter.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ limiters:
### HTTP插件

```yaml
ingresses:
limiters:
- name: limiter-0
plugin:
type: http
Expand Down Expand Up @@ -472,4 +472,6 @@ limiters:
```

!!! tip "基于用户标识的限流"
GOST内部的限制器逻辑未处理针对特定用户的流量限制,如果需要实现此功能需要组合使用认证器插件和处理器上的限制器插件。认证器插件在认证成功后返回用户标识,GOST会将此用户标识信息再次传递给限制器插件服务,限制器插件服务就可以根据用户标识来做不同的限流配置。
GOST内部的限制器逻辑未处理针对特定用户的流量限制,如果需要实现此功能需要组合使用认证器插件和处理器上的限制器插件。

认证器插件在认证成功后返回用户标识,GOST会将此用户标识信息再次传递给限制器插件服务,限制器插件服务就可以根据用户标识来做不同的限流配置。
6 changes: 4 additions & 2 deletions en/docs/concepts/limiter.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ limiters:
### HTTP Plugin

```yaml
ingresses:
limiters:
- name: limiter-0
plugin:
type: http
Expand Down Expand Up @@ -432,5 +432,7 @@ limiters:
```

!!! tip "Limiter Based On Client ID"
The GOST internal Limiter does not handle the logic for specific clients. If you need to implement this function, you can use an Authenticator plugin and a Handler Limiter plugin in combination. The Authenticator plugin returns the client ID after successful authentication. GOST will pass this client ID information to the Limiter plugin server again, and the Limiter plugin server can implement different strategies based on the client ID.
The GOST internal Limiter does not handle the logic for specific clients. If you need to implement this function, you can use an Authenticator plugin and a Handler Limiter plugin in combination.

The Authenticator plugin returns the client ID after successful authentication. GOST will pass this client ID information to the Limiter plugin server again, and the Limiter plugin server can implement different strategies based on the client ID.

0 comments on commit 04c3317

Please sign in to comment.