mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-06 00:37:24 +03:00
Initial email settings UI commit
Added email settings page, settings now save in database, ability to send an email to client when it's created
This commit is contained in:
parent
f8a10417ea
commit
c31636b66e
9 changed files with 568 additions and 25 deletions
|
@ -14,3 +14,18 @@ type GlobalSetting struct {
|
|||
ConfigFilePath string `json:"config_file_path"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
type EmailSetting struct {
|
||||
SendgridApiKey string `json:"sendgrid_api_key"`
|
||||
EmailFromName string `json:"email_from_name"`
|
||||
EmailFrom string `json:"email_from"`
|
||||
SmtpHostname string `json:"smtp_hostname"`
|
||||
SmtpPort int `json:"smtp_port"`
|
||||
SmtpUsername string `json:"smtp_username"`
|
||||
SmtpPassword string `json:"smtp_password"`
|
||||
SmtpNoTLSCheck bool `json:"smtp_no_tls_check"`
|
||||
SmtpAuthType string `json:"smtp_auth_type"`
|
||||
SmtpEncryption string `json:"smtp_encryption"`
|
||||
DefaultEmailSubject string `json:"default_email_subject"`
|
||||
DefaultEmailContent string `json:"default_email_content"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue