mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-01-07 04:25:50 +08:00
WAF策略增加记录区域封禁日志选项
This commit is contained in:
@@ -3,14 +3,16 @@
|
||||
package firewallconfigs
|
||||
|
||||
var DefaultHTTPFirewallPolicyLogConfig = &HTTPFirewallPolicyLogConfig{
|
||||
IsOn: true,
|
||||
RequestBody: true,
|
||||
IsOn: true,
|
||||
RequestBody: true,
|
||||
RegionDenying: false,
|
||||
}
|
||||
|
||||
type HTTPFirewallPolicyLogConfig struct {
|
||||
IsPrior bool `yaml:"isPrior" json:"isPrior"`
|
||||
IsOn bool `yaml:"isOn" json:"isOn"`
|
||||
RequestBody bool `yaml:"requestBody" json:"requestBody"`
|
||||
IsPrior bool `yaml:"isPrior" json:"isPrior"`
|
||||
IsOn bool `yaml:"isOn" json:"isOn"`
|
||||
RequestBody bool `yaml:"requestBody" json:"requestBody"` // 是否记录RequestBody
|
||||
RegionDenying bool `yaml:"regionDenying" json:"regionDenying"` // 是否记录区域封禁日志
|
||||
}
|
||||
|
||||
func (this *HTTPFirewallPolicyLogConfig) Init() error {
|
||||
|
||||
Reference in New Issue
Block a user