diff --git a/docs/changelog/index.md b/docs/changelog/index.md index d964aa13..cf74ac0d 100644 --- a/docs/changelog/index.md +++ b/docs/changelog/index.md @@ -22,6 +22,14 @@ sidebar: false ## [unreleased] +### 新增 + +- 安全性新增「限流」设置:可为边缘站点配置默认并发与带宽;站点未设置时继承,填 `-1` 可显式关闭。 + +### 改进 + +- 站点流量限制语义调整为空或 `0` 继承全局默认、`-1` 关闭、大于 `0` 自定义;修改全局默认后需发布配置版本生效。 + ## [v3.4.1] - 2026-07-19 ### 新增 diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index ee8d3d2f..11c5d55f 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -254,6 +254,9 @@ Server 的所有核心基础配置定义在 `config.yaml` 中,且均支持环 | `openresty_cache_lock_enabled` | `bool` | 遭遇高并发请求击穿同一失效资源时是否对向源站发起建连排队加锁 | `true` | | `openresty_cache_lock_timeout` | `string` | 抢夺代理缓存锁排队建连时排队等待的最长等待耗时限制 | `5s` | | `openresty_cache_use_stale` | `string` | 当源站遇到特定报错(如500/502/504等)时是否直接向用户投递过期缓存 | `error timeout updating http_500 http_502 http_503 http_504` | +| `openresty_default_limit_conn_per_server` | `int` | 站点未配置时的默认并发连接上限;`0` 表示默认关闭 | `0` | +| `openresty_default_limit_conn_per_ip` | `int` | 站点未配置时的默认单 IP 并发上限;`0` 表示默认关闭 | `0` | +| `openresty_default_limit_rate` | `string` | 站点未配置时的默认单请求带宽(如 `512k`);空表示默认关闭 | 空 | | `openresty_main_config_template` | `string` | 允许用户完全重写整个 OpenResty nginx.conf 的底层结构大骨架模板 | 空 (内置缺省骨架) | ---