Files
news-platform/deploy/systemd/healthcheck.env.example
Artur Moreira f5b9a5d058 docs(monitoring): BIT-746 public URL probe, inventory, alert runbook
Extend healthcheck.sh with optional BRIDGE_DEEP_URL and PUBLIC_PAGE_URL
(customer-facing HTTPS with redirects). Document must-not-fail checks,
intervals, and escalation in docs/monitoring.md and a dedicated runbook.

Paperclip-Issue: BIT-746
Paperclip-Run: 04281f51-59ac-4267-a269-f12269dc2320
Paperclip-Agent: Tiago Neves (urlKey tiago-neves; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Made-with: Cursor
2026-04-03 00:23:28 +00:00

26 lines
953 B
Bash

# Health check and alerting configuration
# Deploy to /etc/news-platform/healthcheck.env on the LXC
# Ntfy notification URL — set to your self-hosted Ntfy topic
# Example: https://ntfy.bitreport.pt/news-alerts
NTFY_URL=
# (Optional) Ntfy bearer token for authenticated topics
NTFY_TOKEN=
# Service endpoints (defaults work for standard CT222 deployment)
BRIDGE_URL=http://127.0.0.1:3200/health
# Optional: integrated WordPress + Redis via bridge (BIT-746 deep signal)
# BRIDGE_DEEP_URL=http://127.0.0.1:3200/health?checks=true
FRONTEND_URL=http://127.0.0.1:4321/health.json
WP_URL=http://127.0.0.1:8080/wp-json/wp/v2/
# Optional: customer-facing URL (NPM/TLS/SSR); detects failures invisible to localhost probes (BIT-743 class)
# PUBLIC_PAGE_URL=https://andebol.net/noticias
# Alert if systemd NRestarts exceeds this threshold
RESTART_THRESHOLD=10
# Seconds between repeat alerts for the same failure pattern (default: 15 min)
COOLDOWN_SECS=900