Skip to content

Commit

Permalink
docs: description client-control plugin configuration max_body_size
Browse files Browse the repository at this point in the history
… unit (#10635)
  • Loading branch information
luoluoyuyu authored Dec 14, 2023
1 parent 11344d2 commit 2ef9615
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions apisix/plugins/client-control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ local schema = {
max_body_size = {
type = "integer",
minimum = 0,
description = "Maximum message body size in bytes. No restriction when set to 0."
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion docs/en/latest/plugins/client-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This Plugin requires APISIX to run on APISIX-Runtime. See [apisix-build-tools](h

| Name | Type | Required | Valid values | Description |
| ------------- | ------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| max_body_size | integer | False | [0,...] | Dynamically set the [`client_max_body_size`](https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size) directive. |
| max_body_size | integer | False | [0,...] | Set the maximum limit for the client request body and dynamically adjust the size of [`client_max_body_size`](https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size), measured in bytes. If you set the `max_body_size` to 0, then the size of the client's request body will not be checked. |

## Enable Plugin

Expand Down
6 changes: 3 additions & 3 deletions docs/zh/latest/plugins/client-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ description: 本文介绍了 Apache APISIX proxy-control 插件的相关操作

## 属性

| 名称 | 类型 | 必选项 | 有效值 | 描述 |
| --------- | ------------- | ----------- | ------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| max_body_size | integer || [0,...] | 动态设置 [`client_max_body_size`](https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size) 的大小。 |
| 名称 | 类型 | 必选项 | 有效值 | 描述 |
| --------- | ------------- | ----------- | ------------------------------------------------------------------------ |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| max_body_size | integer || [0,...] | 设置客户端请求体的最大上限,动态调整 [`client_max_body_size`](https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size) 的大小,单位为字节。当设置 `max_body_size` 为 0 时,将不会对客户端请求体大小进行检查|

## 启用插件

Expand Down

0 comments on commit 2ef9615

Please sign in to comment.