mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
828f565290
This is going to be the v4. Expected improvements: - More reliable due to static typing. - Bump of performance. - Improvement of logging. - Authelia can be shipped as a single binary. - Will likely work on ARM architecture.
32 lines
1.1 KiB
Go
32 lines
1.1 KiB
Go
package schema
|
|
|
|
// FileSystemNotifierConfiguration represents the configuration of the notifier writing emails in a file.
|
|
type FileSystemNotifierConfiguration struct {
|
|
Filename string `yaml:"filename"`
|
|
}
|
|
|
|
// EmailNotifierConfiguration represents the configuration of the email service notifier (like GMAIL API).
|
|
type EmailNotifierConfiguration struct {
|
|
Username string `yaml:"username"`
|
|
Password string `yaml:"password"`
|
|
Sender string `yaml:"sender"`
|
|
Service string `yaml:"service"`
|
|
}
|
|
|
|
// SMTPNotifierConfiguration represents the configuration of the SMTP server to send emails with.
|
|
type SMTPNotifierConfiguration struct {
|
|
Username string `yaml:"username"`
|
|
Password string `yaml:"password"`
|
|
Secure string `yaml:"secure"`
|
|
Host string `yaml:"host"`
|
|
Port int `yaml:"port"`
|
|
Sender string `yaml:"sender"`
|
|
}
|
|
|
|
// NotifierConfiguration representes the configuration of the notifier to use when sending notifications to users.
|
|
type NotifierConfiguration struct {
|
|
FileSystem *FileSystemNotifierConfiguration `yaml:"filesystem"`
|
|
Email *EmailNotifierConfiguration `yaml:"email"`
|
|
SMTP *SMTPNotifierConfiguration `yaml:"smtp"`
|
|
}
|