mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 06:41:08 +02:00
feat(mac-mini): add notification system for health checks
- Update health-check.sh with Telegram, Email, and ntfy notification functions - Add notifications.env.example template for configuration - Add setup-notifications.sh interactive setup script Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
515d6033a6
commit
de6151ae27
3 changed files with 386 additions and 16 deletions
36
scripts/mac-mini/notifications.env.example
Normal file
36
scripts/mac-mini/notifications.env.example
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# ManaCore Notification Configuration
|
||||
# Copy this file to the project root as .env.notifications
|
||||
# cp scripts/mac-mini/notifications.env.example .env.notifications
|
||||
|
||||
# ============================================
|
||||
# Telegram Bot
|
||||
# ============================================
|
||||
# 1. Message @BotFather on Telegram
|
||||
# 2. Send /newbot and follow instructions
|
||||
# 3. Copy the bot token here
|
||||
TELEGRAM_BOT_TOKEN=
|
||||
|
||||
# To get your Chat ID:
|
||||
# 1. Message your bot
|
||||
# 2. Visit: https://api.telegram.org/bot<TOKEN>/getUpdates
|
||||
# 3. Find "chat":{"id": YOUR_CHAT_ID}
|
||||
TELEGRAM_CHAT_ID=
|
||||
|
||||
# ============================================
|
||||
# Email (via msmtp)
|
||||
# ============================================
|
||||
# Email address to send alerts to
|
||||
EMAIL_TO=
|
||||
|
||||
# From address (optional)
|
||||
EMAIL_FROM=manacore@mana.how
|
||||
|
||||
# Note: For email to work, install and configure msmtp on Mac Mini:
|
||||
# brew install msmtp
|
||||
# Create ~/.msmtprc with your SMTP settings (see below)
|
||||
|
||||
# ============================================
|
||||
# ntfy.sh (optional, simple push notifications)
|
||||
# ============================================
|
||||
# Create a topic at ntfy.sh and subscribe in the app
|
||||
NTFY_TOPIC=
|
||||
Loading…
Add table
Add a link
Reference in a new issue