mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
data retention: allow to notify results via e-mail
This commit is contained in:
@@ -308,14 +308,15 @@ func Init() {
|
||||
},
|
||||
PluginsConfig: nil,
|
||||
SMTPConfig: smtp.Config{
|
||||
Host: "",
|
||||
Port: 25,
|
||||
From: "",
|
||||
User: "",
|
||||
Password: "",
|
||||
AuthType: 0,
|
||||
Encryption: 0,
|
||||
Domain: "",
|
||||
Host: "",
|
||||
Port: 25,
|
||||
From: "",
|
||||
User: "",
|
||||
Password: "",
|
||||
AuthType: 0,
|
||||
Encryption: 0,
|
||||
Domain: "",
|
||||
TemplatesPath: "templates",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1176,6 +1177,7 @@ func setViperDefaults() {
|
||||
viper.SetDefault("smtp.auth_type", globalConf.SMTPConfig.AuthType)
|
||||
viper.SetDefault("smtp.encryption", globalConf.SMTPConfig.Encryption)
|
||||
viper.SetDefault("smtp.domain", globalConf.SMTPConfig.Domain)
|
||||
viper.SetDefault("smtp.templates_path", globalConf.SMTPConfig.TemplatesPath)
|
||||
}
|
||||
|
||||
func lookupBoolFromEnv(envName string) (bool, bool) {
|
||||
|
||||
Reference in New Issue
Block a user