From 01d3ddcd110147001f5586ba668ac08fb7571393 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 6 May 2024 14:03:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=B8=AA=E7=BD=91=E7=AB=99=E7=9A=845?= =?UTF-8?q?=E7=A7=92=E7=9B=BE=E5=8F=AF=E4=BB=A5=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E6=9C=89=E6=95=88=E6=9C=9F?= 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 ebf5baf..ea2a33e 100644 --- a/pkg/serverconfigs/uam_config.go +++ b/pkg/serverconfigs/uam_config.go @@ -16,6 +16,7 @@ type UAMConfig struct { ExceptURLPatterns []*shared.URLPattern `yaml:"exceptURLPatterns" json:"exceptURLPatterns"` // 排除的URL MinQPSPerIP int `yaml:"minQPSPerIP" json:"minQPSPerIP"` // 启用要求的单IP最低平均QPS Conds *shared.HTTPRequestCondsConfig `yaml:"conds" json:"conds"` // 匹配条件 + KeyLife int `yaml:"keyLife" json:"keyLife"` // Key有效期 } func NewUAMConfig() *UAMConfig {