feat: 续费提醒告警(Telegram/邮件多渠道+续费检查+每日定时+前端控制)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# 续费提醒检查服务(oneshot,由 timer 触发)
|
||||
# 部署位置:/etc/systemd/system/vps-renewal-check.service
|
||||
|
||||
[Unit]
|
||||
Description=Check asset renewals and send notifications
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/opt/vps-manager
|
||||
EnvironmentFile=-/opt/vps-manager/.env
|
||||
ExecStart=/opt/vps-manager/.venv/bin/python /opt/vps-manager/scripts/check_renewals.py
|
||||
@@ -0,0 +1,13 @@
|
||||
# 续费提醒每日检查定时器(每天早上 9 点)
|
||||
# 部署位置:/etc/systemd/system/vps-renewal-check.timer
|
||||
|
||||
[Unit]
|
||||
Description=Daily renewal check and notification
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 09:00:00
|
||||
Persistent=true
|
||||
Unit=vps-renewal-check.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user