feat(alerting): adds fearture toogle for alerting
This commit is contained in:
@@ -137,6 +137,9 @@ var (
|
||||
|
||||
// QUOTA
|
||||
Quota QuotaSettings
|
||||
|
||||
// Alerting
|
||||
AlertingEnabled bool
|
||||
)
|
||||
|
||||
type CommandLineArgs struct {
|
||||
@@ -484,6 +487,9 @@ func NewConfigContext(args *CommandLineArgs) error {
|
||||
LdapEnabled = ldapSec.Key("enabled").MustBool(false)
|
||||
LdapConfigFile = ldapSec.Key("config_file").String()
|
||||
|
||||
alerting := Cfg.Section("alerting")
|
||||
AlertingEnabled = alerting.Key("enabled").MustBool(false)
|
||||
|
||||
readSessionConfig()
|
||||
readSmtpSettings()
|
||||
readQuotaSettings()
|
||||
|
||||
Reference in New Issue
Block a user