mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
cc4f47f21c
This removes the deprecated options from 4.25. This includes the LDAP filters which allow {0} or {1} placeholders. The new aliases are documented. Additionally it refactors the keys validator to use uniform messages for most replaced keys.
38 lines
1.7 KiB
Go
38 lines
1.7 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 {
|
|
Host string `mapstructure:"host"`
|
|
Port int `mapstructure:"port"`
|
|
Username string `mapstructure:"username"`
|
|
Password string `mapstructure:"password"`
|
|
Identifier string `mapstructure:"identifier"`
|
|
Sender string `mapstructure:"sender"`
|
|
Subject string `mapstructure:"subject"`
|
|
StartupCheckAddress string `mapstructure:"startup_check_address"`
|
|
DisableRequireTLS bool `mapstructure:"disable_require_tls"`
|
|
DisableHTMLEmails bool `mapstructure:"disable_html_emails"`
|
|
TLS *TLSConfig `mapstructure:"tls"`
|
|
}
|
|
|
|
// NotifierConfiguration represents the configuration of the notifier to use when sending notifications to users.
|
|
type NotifierConfiguration struct {
|
|
DisableStartupCheck bool `mapstructure:"disable_startup_check"`
|
|
FileSystem *FileSystemNotifierConfiguration `mapstructure:"filesystem"`
|
|
SMTP *SMTPNotifierConfiguration `mapstructure:"smtp"`
|
|
}
|
|
|
|
// DefaultSMTPNotifierConfiguration represents default configuration parameters for the SMTP notifier.
|
|
var DefaultSMTPNotifierConfiguration = SMTPNotifierConfiguration{
|
|
Subject: "[Authelia] {title}",
|
|
Identifier: "localhost",
|
|
TLS: &TLSConfig{
|
|
MinimumVersion: "TLS1.2",
|
|
},
|
|
}
|