- Add "tgChatId" and "tgBotToken" fields to configuration files - Modify "config.go" to include new configuration fields - Implement Telegram push hook functionality in "telegram_push.go" - Add test file "telegram_push_test.go" to test Telegram push hook functionality
19 lines
527 B
JSON
19 lines
527 B
JSON
{
|
|
"logLevel": "info",
|
|
"domain": "domain.com",
|
|
"webDomain": "mail.domain.com",
|
|
"dkimPrivateKeyPath": "config/dkim/dkim.priv",
|
|
"sslType": "0",
|
|
"SSLPrivateKeyPath": "config/ssl/private.key",
|
|
"SSLPublicKeyPath": "config/ssl/public.crt",
|
|
"dbDSN": "root:root@tcp(127.0.0.1:3306)/pmail?parseTime=True&loc=Local",
|
|
"dbType": "mysql",
|
|
"weChatPushAppId": "",
|
|
"weChatPushSecret": "",
|
|
"weChatPushTemplateId": "",
|
|
"weChatPushUserId": "",
|
|
"tgChatId": "",
|
|
"tgBotToken": "",
|
|
"isInit": true,
|
|
"httpsEnabled": 2
|
|
} |