mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-23 07:40:18 +00:00
perf:因 web-nuxt 提高 API 节流阈值
This commit is contained in:
parent
605bd6a4fe
commit
d887fe8e70
@ -15,7 +15,7 @@ return [
|
||||
// 要被限制的请求类型, eg: GET POST PUT DELETE HEAD 等
|
||||
'visit_method' => ['GET', 'HEAD'],
|
||||
// 设置访问频率,例如 '10/m' 指的是允许每分钟请求10次;'10/60'指允许每60秒请求10次。值 null 表示不限制, eg: null 10/m 20/h 300/d 200/300
|
||||
'visit_rate' => '70/m',
|
||||
'visit_rate' => '120/m',
|
||||
/*
|
||||
* 设置节流算法,组件提供了四种算法:
|
||||
* - CounterFixed :计数固定窗口
|
||||
|
Loading…
Reference in New Issue
Block a user