- Remove telemetry: disabled all phone-home (installation notify, false positives, behavior tracking, upgrade tips) - Version branding: removed 'ce-' prefix, product name changed to '长亭雷池 WAF' - Detection engine enhancement: strict preset enables all 17 modules with aggressive configs - Multi-user RBAC: admin/operator/viewer roles with password + TOTP 2FA - Rate limiting: nginx limit_req per website (RPS, burst, action) - JS Challenge: browser fingerprint verification page with cookie-based bypass - Security fixes: removed InsecureSkipVerify, hardcoded credentials, NO_AUTH backdoor
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"chaitin.cn/dev/go/settings"
|
||||
)
|
||||
|
||||
type LogConfig struct {
|
||||
Output string `yaml:"output"`
|
||||
Level string `yaml:"level"`
|
||||
}
|
||||
|
||||
func DefaultLogConfig() LogConfig {
|
||||
return LogConfig{
|
||||
Output: "stdout",
|
||||
Level: "info",
|
||||
}
|
||||
}
|
||||
|
||||
func (lc *LogConfig) Load(setting *settings.Setting) error {
|
||||
if err := setting.Unmarshal("log", lc); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user