WAF策略默认开启记录日志

This commit is contained in:
刘祥超
2022-04-21 09:38:56 +08:00
parent 4e921330db
commit 2e17fc4368
2 changed files with 35 additions and 10 deletions

View File

@@ -0,0 +1,17 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package firewallconfigs
var DefaultHTTPFirewallPolicyLogConfig = &HTTPFirewallPolicyLogConfig{
IsOn: true,
RequestBody: true,
}
type HTTPFirewallPolicyLogConfig struct {
IsOn bool `yaml:"isOn" json:"isOn"`
RequestBody bool `yaml:"requestBody" json:"requestBody"`
}
func (this *HTTPFirewallPolicyLogConfig) Init() error {
return nil
}