Files
ns8-backup-monitor/config/config.yml.example
T

60 lines
2.2 KiB
Plaintext
Raw Normal View History

2026-05-18 15:10:49 +00:00
# ns8-backup-monitor configuration
# ---------------------------------------------------------------------------
2026-05-18 15:10:49 +00:00
# Notification recipients
# ---------------------------------------------------------------------------
# Email delivery is handled by ns8-sendmail, which uses the SMTP relay
# already configured in NethServer 8. No SMTP settings needed here.
2026-05-18 15:10:49 +00:00
mail:
# Sender address (optional - ns8-sendmail may override this with the
# system sender; useful to set for clarity in mail clients)
2026-05-18 15:10:49 +00:00
from: "ns8-backup-monitor@yourdomain.com"
# List of recipients - REQUIRED, always set this
2026-05-18 15:10:49 +00:00
to:
- "admin@yourdomain.com"
2026-05-18 15:10:49 +00:00
subject_prefix: "[NS8 Backup]"
# ---------------------------------------------------------------------------
2026-05-18 15:10:49 +00:00
# Webhook receiver settings
# ---------------------------------------------------------------------------
2026-05-18 15:10:49 +00:00
receiver:
host: "127.0.0.1"
port: 9099
# ---------------------------------------------------------------------------
# Timing
# ---------------------------------------------------------------------------
2026-05-18 15:10:49 +00:00
correlator:
# Seconds to wait after alert before checking Redis status.
# Allows all modules to finish writing their status.
2026-05-18 15:10:49 +00:00
wait_seconds: 30
# Time window (seconds) to consider a backup "recent" after alert
recent_window: 3600
# ---------------------------------------------------------------------------
2026-05-18 15:10:49 +00:00
# Redis connection (NS8 cluster state)
# ---------------------------------------------------------------------------
2026-05-18 15:10:49 +00:00
redis:
socket: "/var/lib/nethserver/cluster/state/redis.sock"
# Alternatively use host/port if not using unix socket
# host: "127.0.0.1"
# port: 6379
# ---------------------------------------------------------------------------
# Repository check
# ---------------------------------------------------------------------------
2026-05-18 15:10:49 +00:00
repo_check:
# Maximum seconds to wait for each repo check
2026-05-18 15:10:49 +00:00
timeout: 60
# Additional restic flags if needed (e.g. '--cacert /path/to/ca.crt')
2026-05-18 15:10:49 +00:00
restic_flags: ""
# ---------------------------------------------------------------------------
2026-05-18 15:10:49 +00:00
# Logging
# ---------------------------------------------------------------------------
2026-05-18 15:10:49 +00:00
logging:
level: INFO
file: "/var/log/ns8-backup-monitor.log"