mirror of
https://github.com/h44z/wg-portal
synced 2025-02-26 05:49:14 +00:00
31 lines
801 B
Go
31 lines
801 B
Go
|
package config
|
||
|
|
||
|
type MailEncryption string
|
||
|
|
||
|
const (
|
||
|
MailEncryptionNone MailEncryption = "none"
|
||
|
MailEncryptionTLS MailEncryption = "tls"
|
||
|
MailEncryptionStartTLS MailEncryption = "starttls"
|
||
|
)
|
||
|
|
||
|
type MailAuthType string
|
||
|
|
||
|
const (
|
||
|
MailAuthPlain MailAuthType = "plain"
|
||
|
MailAuthLogin MailAuthType = "login"
|
||
|
MailAuthCramMD5 MailAuthType = "crammd5"
|
||
|
)
|
||
|
|
||
|
type MailConfig struct {
|
||
|
Host string `yaml:"host"`
|
||
|
Port int `yaml:"port"`
|
||
|
Encryption MailEncryption `yaml:"encryption"`
|
||
|
CertValidation bool `yaml:"cert_validation"`
|
||
|
Username string `yaml:"username"`
|
||
|
Password string `yaml:"password"`
|
||
|
AuthType MailAuthType `yaml:"auth_type"`
|
||
|
|
||
|
From string `yaml:"from"`
|
||
|
LinkOnly bool `yaml:"link_only"`
|
||
|
}
|