单个网站的5秒盾可以自定义验证有效期

This commit is contained in:
GoEdgeLab
2024-05-06 14:03:35 +08:00
parent ffcb94d716
commit 01d3ddcd11

View File

@@ -16,6 +16,7 @@ type UAMConfig struct {
ExceptURLPatterns []*shared.URLPattern `yaml:"exceptURLPatterns" json:"exceptURLPatterns"` // 排除的URL ExceptURLPatterns []*shared.URLPattern `yaml:"exceptURLPatterns" json:"exceptURLPatterns"` // 排除的URL
MinQPSPerIP int `yaml:"minQPSPerIP" json:"minQPSPerIP"` // 启用要求的单IP最低平均QPS MinQPSPerIP int `yaml:"minQPSPerIP" json:"minQPSPerIP"` // 启用要求的单IP最低平均QPS
Conds *shared.HTTPRequestCondsConfig `yaml:"conds" json:"conds"` // 匹配条件 Conds *shared.HTTPRequestCondsConfig `yaml:"conds" json:"conds"` // 匹配条件
KeyLife int `yaml:"keyLife" json:"keyLife"` // Key有效期
} }
func NewUAMConfig() *UAMConfig { func NewUAMConfig() *UAMConfig {