mirror of
https://github.com/h44z/wg-portal.git
synced 2025-09-15 07:11:15 +00:00
chore: get rid of static code warnings
This commit is contained in:
@@ -17,14 +17,23 @@ const (
|
||||
)
|
||||
|
||||
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"`
|
||||
// Host is the hostname or IP of the SMTP server
|
||||
Host string `yaml:"host"`
|
||||
// Port is the port number for the SMTP server
|
||||
Port int `yaml:"port"`
|
||||
// Encryption is the SMTP encryption type
|
||||
Encryption MailEncryption `yaml:"encryption"`
|
||||
// CertValidation specifies whether the SMTP server certificate should be validated
|
||||
CertValidation bool `yaml:"cert_validation"`
|
||||
// Username is the optional SMTP username for authentication
|
||||
Username string `yaml:"username"`
|
||||
// Password is the optional SMTP password for authentication
|
||||
Password string `yaml:"password"`
|
||||
// AuthType is the SMTP authentication type
|
||||
AuthType MailAuthType `yaml:"auth_type"`
|
||||
|
||||
From string `yaml:"from"`
|
||||
LinkOnly bool `yaml:"link_only"`
|
||||
// From is the default "From" address when sending emails
|
||||
From string `yaml:"from"`
|
||||
// LinkOnly specifies whether emails should only contain a link to WireGuard Portal or attach the full configuration
|
||||
LinkOnly bool `yaml:"link_only"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user