mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
25 lines
991 B
Go
25 lines
991 B
Go
package schema
|
|
|
|
// FileSystemNotifierConfiguration represents the configuration of the notifier writing emails in a file.
|
|
type FileSystemNotifierConfiguration struct {
|
|
Filename string `yaml:"filename"`
|
|
}
|
|
|
|
// SMTPNotifierConfiguration represents the configuration of the SMTP server to send emails with.
|
|
type SMTPNotifierConfiguration struct {
|
|
Username string `yaml:"username"`
|
|
Password string `yaml:"password"`
|
|
Sender string `yaml:"sender"`
|
|
Host string `yaml:"host"`
|
|
Port int `yaml:"port"`
|
|
TrustedCert string `yaml:"trusted_cert"`
|
|
DisableVerifyCert bool `yaml:"disable_verify_cert"`
|
|
DisableRequireTLS bool `yaml:"disable_require_tls"`
|
|
}
|
|
|
|
// NotifierConfiguration represents the configuration of the notifier to use when sending notifications to users.
|
|
type NotifierConfiguration struct {
|
|
FileSystem *FileSystemNotifierConfiguration `yaml:"filesystem"`
|
|
SMTP *SMTPNotifierConfiguration `yaml:"smtp"`
|
|
}
|