mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
2fed503e5e
* [FEATURE] Customizable Email Subject * allow users to optionally change email subject * this is so they can more easily communicate the source of the email * Update docs/configuration/notifier/smtp.md Co-Authored-By: Amir Zarrinkafsh <nightah@me.com> Co-authored-by: Clément Michaud <clement.michaud34@gmail.com> Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
30 lines
1.2 KiB
Go
30 lines
1.2 KiB
Go
package schema
|
|
|
|
// FileSystemNotifierConfiguration represents the configuration of the notifier writing emails in a file.
|
|
type FileSystemNotifierConfiguration struct {
|
|
Filename string `mapstructure:"filename"`
|
|
}
|
|
|
|
// SMTPNotifierConfiguration represents the configuration of the SMTP server to send emails with.
|
|
type SMTPNotifierConfiguration struct {
|
|
Username string `mapstructure:"username"`
|
|
Password string `mapstructure:"password"`
|
|
Sender string `mapstructure:"sender"`
|
|
Subject string `mapstructure:"subject"`
|
|
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"`
|
|
}
|
|
|
|
// NotifierConfiguration represents the configuration of the notifier to use when sending notifications to users.
|
|
type NotifierConfiguration struct {
|
|
FileSystem *FileSystemNotifierConfiguration `mapstructure:"filesystem"`
|
|
SMTP *SMTPNotifierConfiguration `mapstructure:"smtp"`
|
|
}
|
|
|
|
var DefaultSMTPNotifierConfiguration = SMTPNotifierConfiguration{
|
|
Subject: "[Authelia] {title}",
|
|
}
|