新增限流中间件,根据IP

This commit is contained in:
yaooort
2021-10-09 20:26:26 +08:00
parent 8f8bef9ea2
commit 2f46581ada
3 changed files with 59 additions and 0 deletions
+4
View File
@@ -45,6 +45,10 @@ system:
db-type: 'mysql'
oss-type: 'local' # 控制oss选择走本期还是 七牛等其他仓 自行增加其他oss仓可以在 server/utils/upload/upload.go 中 NewOss函数配置
use-multipoint: false
# IP限制次数 一个小时15000次
iplimit-count: 15000
# IP限制一个小时
iplimit-time: 3600
# captcha configuration
captcha: