2019-04-24 21:52:08 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// FileSystemNotifierConfiguration represents the configuration of the notifier writing emails in a file.
|
|
|
|
type FileSystemNotifierConfiguration struct {
|
2020-01-21 20:56:44 +00:00
|
|
|
Filename string `mapstructure:"filename"`
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SMTPNotifierConfiguration represents the configuration of the SMTP server to send emails with.
|
|
|
|
type SMTPNotifierConfiguration struct {
|
2020-01-21 20:56:44 +00:00
|
|
|
Username string `mapstructure:"username"`
|
|
|
|
Password string `mapstructure:"password"`
|
|
|
|
Sender string `mapstructure:"sender"`
|
2020-04-09 00:21:28 +00:00
|
|
|
Subject string `mapstructure:"subject"`
|
2020-01-21 20:56:44 +00:00
|
|
|
Host string `mapstructure:"host"`
|
|
|
|
Port int `mapstructure:"port"`
|
|
|
|
TrustedCert string `mapstructure:"trusted_cert"`
|
|
|
|
DisableVerifyCert bool `mapstructure:"disable_verify_cert"`
|
|
|
|
DisableRequireTLS bool `mapstructure:"disable_require_tls"`
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|
|
|
|
|
2020-01-05 23:03:16 +00:00
|
|
|
// NotifierConfiguration represents the configuration of the notifier to use when sending notifications to users.
|
2019-04-24 21:52:08 +00:00
|
|
|
type NotifierConfiguration struct {
|
2020-01-21 20:56:44 +00:00
|
|
|
FileSystem *FileSystemNotifierConfiguration `mapstructure:"filesystem"`
|
|
|
|
SMTP *SMTPNotifierConfiguration `mapstructure:"smtp"`
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|
2020-04-09 00:21:28 +00:00
|
|
|
|
|
|
|
var DefaultSMTPNotifierConfiguration = SMTPNotifierConfiguration{
|
|
|
|
Subject: "[Authelia] {title}",
|
|
|
|
}
|