feat: 请求速率限制逻辑

This commit is contained in:
helloplhm-qwq
2023-11-26 12:49:10 +08:00
committed by Folltoshe
parent b80f4623f5
commit 7e3161af20
2 changed files with 20 additions and 0 deletions

View File

@ -66,6 +66,11 @@ default = {
"_proxy-desc": "代理配置HTTP与HTTPS协议需分开配置",
},
"security": {
"rate_limit": {
"global": 0,
"ip": 0,
"desc": "请求速率限制global为全局ip为单个ip填入的值为至少间隔多久才能进行一次请求单位不限制请填为0"
}
"key": {
"enable": False,
"_enable-desc": "是否开启请求key开启后只有请求头中包含key且值一样时可以访问API",