mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	单个网站的5秒盾可以自定义验证有效期
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user