From 102b5859b319036bcc63e1fc5c8a1027f96cc604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Fri, 14 Jul 2023 11:01:14 +0800 Subject: [PATCH] =?UTF-8?q?5=E7=A7=92=E7=9B=BE=E5=A2=9E=E5=8A=A0QPS?= =?UTF-8?q?=E9=99=90=E5=88=B6=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/uam_config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/serverconfigs/uam_config.go b/pkg/serverconfigs/uam_config.go index 0dba724..3338f5c 100644 --- a/pkg/serverconfigs/uam_config.go +++ b/pkg/serverconfigs/uam_config.go @@ -12,6 +12,7 @@ type UAMConfig struct { AddToWhiteList bool `yaml:"addToWhiteList" json:"addToWhiteList"` // 是否将IP加入到白名单 OnlyURLPatterns []*shared.URLPattern `yaml:"onlyURLPatterns" json:"onlyURLPatterns"` // 仅限的URL ExceptURLPatterns []*shared.URLPattern `yaml:"exceptURLPatterns" json:"exceptURLPatterns"` // 排除的URL + MinQPSPerIP int `yaml:"minQPSPerIP" json:"minQPSPerIP"` // 启用要求的单IP最低平均QPS } func NewUAMConfig() *UAMConfig {