- Auth, sync, messaging, media, rooms, federation, presence tests - Light checks every 5min, full checks every 60min - Reports to a dedicated Matrix monitoring room - Telegram alerts on consecutive failures - Docker container with healthcheck endpoint - Auto-creates monitoring room if not configured
31 lines
1001 B
Bash
31 lines
1001 B
Bash
# Matrix-Health-Monitor environment variables
|
|
# Copy this to .env and fill in your values
|
|
|
|
# Matrix homeserver URL
|
|
MATRIX_HOMESERVER=https://synapse.rewr.ca
|
|
|
|
# Access token for the monitor bot account
|
|
# Get this from your Matrix client or via: curl -X POST '<homeserver>/_matrix/client/v3/login' --data '{"type":"m.login.password","identifier":{"type":"m.id.user","user":"@bot:server"},"password":"<password>","initial_device_display_name":"Monitor Bot"}'
|
|
MATRIX_ACCESS_TOKEN=
|
|
|
|
# Room to post health reports to (leave empty to auto-create on first run)
|
|
#MATRIX_MONITOR_ROOM=!yourroomid:server
|
|
|
|
# Telegram alerts (optional - set both for Telegram notifications)
|
|
TELEGRAM_BOT_TOKEN=
|
|
TELEGRAM_CHAT_ID=
|
|
|
|
# Check intervals (seconds)
|
|
CHECK_INTERVAL_LIGHT=300
|
|
CHECK_INTERVAL_FULL=3600
|
|
|
|
# HTTP health endpoint port
|
|
HTTP_PORT=8090
|
|
|
|
# Reporting: set REPORT_ON_FAILURE=true to report only failures, false for always
|
|
REPORT_ON_FAILURE=true
|
|
REPORT_ALWAYS=false
|
|
|
|
# Test message prefix
|
|
TEST_MSG_PREFIX=[health-test]
|