feat(alerting): make it possible to skip ssl verification for alerting https requests

This commit is contained in:
bergquist
2016-09-08 16:29:31 +02:00
parent 7b9099ef93
commit aa80b52c07
4 changed files with 23 additions and 6 deletions
+3 -1
View File
@@ -141,7 +141,8 @@ var (
Quota QuotaSettings
// Alerting
AlertingEnabled bool
AlertingEnabled bool
AlertingSkipSSLValidation bool
// logger
logger log.Logger
@@ -546,6 +547,7 @@ func NewConfigContext(args *CommandLineArgs) error {
alerting := Cfg.Section("alerting")
AlertingEnabled = alerting.Key("enabled").MustBool(false)
AlertingSkipSSLValidation = alerting.Key("skip_ssl_validation").MustBool(false)
readSessionConfig()
readSmtpSettings()