feat(alerting): adds fearture toogle for alerting

This commit is contained in:
bergquist
2016-04-29 14:35:58 +02:00
parent bd30a4d23e
commit 6d66d9f42d
4 changed files with 16 additions and 1 deletions
+6
View File
@@ -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()