Files
EdgeCommon/pkg/serverconfigs/firewallconfigs/http_firewall_policy_log_config.go

21 lines
677 B
Go
Raw Normal View History

2022-04-21 09:38:56 +08:00
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package firewallconfigs
var DefaultHTTPFirewallPolicyLogConfig = &HTTPFirewallPolicyLogConfig{
IsOn: true,
RequestBody: true,
RegionDenying: false,
2022-04-21 09:38:56 +08:00
}
type HTTPFirewallPolicyLogConfig struct {
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"` // 是否记录区域封禁日志
2022-04-21 09:38:56 +08:00
}
func (this *HTTPFirewallPolicyLogConfig) Init() error {
return nil
}