feat: add multi-channel notification delivery

This commit is contained in:
biss committed 2026-10-29 18:54:04 +08:00
1 parent 22ae66fe2d
commit 0552b3e424
21 files changed
+13567 -7

No files matched your search

+16
View File
@@ -87,6 +87,22 @@ Operations__MySqlClientPath=mysql
# Operations__MySqlAdditionalArguments__0=--ssl-mode=VERIFY_IDENTITY
# Operations__MySqlAdditionalArguments__1=--ssl-ca=/etc/jiaowu/mysql-ca.pem
# 外部通知默认关闭;站内消息不受这些配置影响。启用邮件前应使用专用 SMTP 账号。
NotificationDelivery__Email__Enabled=false
# NotificationDelivery__Email__Host=smtp.example.edu.cn
# NotificationDelivery__Email__Port=587
# NotificationDelivery__Email__UseSsl=true
# NotificationDelivery__Email__UserName=jiaowu-notify
# NotificationDelivery__Email__Password=REPLACE_WITH_SMTP_PASSWORD
# NotificationDelivery__Email__FromAddress=jiaowu@example.edu.cn
# NotificationDelivery__Email__FromName=教务系统
# Web Push 需要 VAPID 密钥。私钥只能通过环境变量或密钥管理服务注入,不能提交到仓库。
NotificationDelivery__WebPush__Enabled=false
# NotificationDelivery__WebPush__Subject=mailto:admin@example.edu.cn
# NotificationDelivery__WebPush__PublicKey=REPLACE_WITH_VAPID_PUBLIC_KEY
# NotificationDelivery__WebPush__PrivateKey=REPLACE_WITH_VAPID_PRIVATE_KEY
# 签名插件包存储目录必须持久化,并仅允许服务账号写入。发布者公钥使用 RSA PEM。
Plugins__StoragePath=/var/lib/jiaowu/plugins
Plugins__MaximumPackageMegabytes=20