Redis backed rate limit module for Nginx

11 — 所有核心与模块指令——语法、默认值、上下文与真实配置示例。

rate_limit `rate_limit` 指令通过使用 Redis 作为后端存储和管理,控制 NGINX 服务器处理的请求速率。 httpserverlocation rate_limit_buffer_size 设置在 NGINX 中使用基于 Redis 的速率限制功能时用于速率限制数据的缓冲区大小。 httpserverlocation rate_limit_connect_timeout 设置在使用 Redis 进行速率限制时接收连接响应的超时时间。 httpserverlocation rate_limit_headers rate_limit_headers 指令允许在 HTTP 响应中包含与速率限制相关的头部信息。 httpserverlocation rate_limit_log_level 'rate_limit_log_level' 指令定义了 NGINX 中因超过速率限制而产生事件的日志级别。 httpserverlocation rate_limit_pass `rate_limit_pass` 指令指定在 NGINX 中用于检查并强制执行速率限制的上游服务器。 httpserverlocation rate_limit_prefix 为 NGINX 中基于 Redis 的限速使用的限速键设置前缀。 httpserverlocation rate_limit_quantity 使用 Redis 支持的速率限制模块,设置在触发限流之前允许的请求数量。 httpserverlocation rate_limit_read_timeout 指令 `rate_limit_read_timeout` 在基于 Redis 的 NGINX 限速模块中设置读取响应的超时时间。 httpserverlocation rate_limit_send_timeout 该 `rate_limit_send_timeout` 指令设置在限速操作期间发送响应的超时时间。 httpserverlocation rate_limit_status 指令 `rate_limit_status` 用于设置当请求超过速率限制时返回的 HTTP 状态码。 httpserverlocation