fix: alarm email forward

This commit is contained in:
simonzhangsz committed 2023-10-27 16:35:19 +08:00
1 parent d60e3aca2e
commit f0f0b54268
4 files changed
+31 -9

No files matched your search

+5 -4
View File
@@ -82,10 +82,11 @@ type YamlConfig struct {
Alarm struct {
ForwardAlarm bool `yaml:"forwardAlarm"`
Email struct {
Smtp string `yaml:"smtp"`
Port uint16 `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
Smtp string `yaml:"smtp"`
Port uint16 `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
TlsSkipVerify bool `yaml:"tlsSkipVerify"`
} `json:"email"`
SMS struct {
ApiURL string `yaml:"apiURL"`
+2
View File
@@ -115,6 +115,8 @@ alarm:
port: 25
user: smtpext@agrandtech.com
password: "1000smtp@omc!"
# TLS skip verify: true/false
tlsSkipVerify: true
sms:
apiURL: http://smsc.xxx.com.cn/
accessKeyID: xxxx