2020-10-06 21:02:21 +08:00
|
|
|
package firewallconfigs
|
2020-09-20 20:12:53 +08:00
|
|
|
|
2023-11-15 15:12:08 +08:00
|
|
|
type ServerCaptchaType = string
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
ServerCaptchaTypeNone ServerCaptchaType = "none" // 不设置表示策略整体配置
|
|
|
|
|
ServerCaptchaTypeDefault ServerCaptchaType = CaptchaTypeDefault
|
|
|
|
|
ServerCaptchaTypeOneClick ServerCaptchaType = CaptchaTypeOneClick
|
|
|
|
|
ServerCaptchaTypeSlide ServerCaptchaType = CaptchaTypeSlide
|
2023-11-29 16:58:24 +08:00
|
|
|
ServerCaptchaTypeGeeTest ServerCaptchaType = CaptchaTypeGeeTest
|
2023-11-15 15:12:08 +08:00
|
|
|
)
|
|
|
|
|
|
2020-09-20 20:12:53 +08:00
|
|
|
type HTTPFirewallRef struct {
|
2023-03-01 16:52:30 +08:00
|
|
|
IsPrior bool `yaml:"isPrior" json:"isPrior"`
|
|
|
|
|
IsOn bool `yaml:"isOn" json:"isOn"`
|
|
|
|
|
FirewallPolicyId int64 `yaml:"firewallPolicyId" json:"firewallPolicyId"`
|
|
|
|
|
IgnoreGlobalRules bool `yaml:"ignoreGlobalRules" json:"ignoreGlobalRules"` // 忽略系统定义的全局规则
|
2023-11-15 15:12:08 +08:00
|
|
|
|
|
|
|
|
DefaultCaptchaType ServerCaptchaType `yaml:"defaultCaptchaType" json:"defaultCaptchaType"` // 默认人机识别方式
|
2020-09-20 20:12:53 +08:00
|
|
|
}
|
2020-09-26 08:07:24 +08:00
|
|
|
|
|
|
|
|
func (this *HTTPFirewallRef) Init() error {
|
|
|
|
|
return nil
|
|
|
|
|
}
|