mirror of
https://github.com/nanomq/nanomq.git
synced 2025-07-09 21:55:36 +00:00
* MDF [doc] add docs for new HTTP option (max_body)
Signed-off-by: jaylin <jaylin@emqx.io>
This commit is contained in:
@ -11,6 +11,7 @@ http_server = {
|
||||
limit_conn = 32 # Maximum number of outstanding requests NanoMQ can handle
|
||||
username = "admin" # Username
|
||||
password = "public" # Password
|
||||
max_body = 65535 # Max size of HTTP body server can accept
|
||||
auth_type = "jwt" # Authentication type, "basic" or "jwt"
|
||||
jwt = {
|
||||
public.keyfile = "/etc/certs/jwt/jwtRS256.key.pub" # Path to the JWT public key file, used if auth_type is "jwt"
|
||||
@ -25,6 +26,7 @@ http_server = {
|
||||
- `limit_conn`: Specifies the maximum number of outstanding requests that the server can handle at once. Value range: 1 ~ infinity.
|
||||
- `username`: Specifies the username required for authentication with the HTTP server.
|
||||
- `password`: Specifies the password required for authentication with the HTTP server.
|
||||
- `max_body`: Specifies the max size of HTTP body allowed by the HTTP server (Bytes).
|
||||
- `auth_type`: Specifies the type of authentication used by the HTTP server. Values:
|
||||
- "basic"
|
||||
- "jwt": If "jwt" is to be used, make sure JWT dependencies have been built with the `-DENABLE_JWT=ON` option. For details, see [Build from Source Code](../installation/build-options.md)
|
||||
|
@ -10,6 +10,7 @@ http_server = {
|
||||
limit_conn = 32 # NanoMQ 可以处理的最大未完成请求数
|
||||
username = "admin" # 用户名
|
||||
password = "public" # 密码
|
||||
max_body = 65535 # 最大 HTTP Body
|
||||
auth_type = "jwt# 认证类型
|
||||
jwt = {
|
||||
public.keyfile = "/etc/certs/jwt/jwtRS256.key.pub" # JWT公钥文件路径
|
||||
@ -23,6 +24,7 @@ http_server = {
|
||||
- `limit_conn`:服务器一次可以处理的最大未完成请求数量。值范围:1 ~ infinity。
|
||||
- `username`:与 HTTP 服务器进行身份验证所需的用户名。
|
||||
- `password`:与 HTTP 服务器进行身份验证所需的密码。
|
||||
- `max_body`:HTTP 服务器一次可以处理的最大 HTTP body.
|
||||
- `auth_type`:HTTP 服务器使用的认证类型:
|
||||
- "basic"
|
||||
- "jwt":如使用 `"jwt"`,请确保已启用 JWT 功能 ( `-DENABLE_JWT=ON`),具体步骤,见[源码编译安装](../installation/build-options.md)。
|
||||
|
Reference in New Issue
Block a user