Merge pull request #760 from yaooort/update_mysql

新增限流中间件,根据IP
This commit is contained in:
奇淼(piexlmax
2021-10-11 10:13:12 +08:00
committed by GitHub
3 changed files with 60 additions and 0 deletions
+4
View File
@@ -44,6 +44,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: