Panel/status/api/config.php.example
2026-04-29 17:49:28 -04:00

24 lines
944 B
Text

<?php
// Copy this file to config.php and fill in real values.
// config.php is git-ignored — never commit the real copy.
return [
// SQLite DB (auto-created)
'db_path' => __DIR__ . '/../status.sqlite',
// Shared secret the machines use when POSTing
'ingest_token' => 'CHANGE_ME_LONG_RANDOM_HEX',
// Set if you want Discord alerts (or leave empty to disable)
'discord_webhook' => '',
// Host considered UP if last sample newer than this many seconds
'up_grace_seconds' => 10*60, // 10 minutes
// Alert rules (machine DOWN when no sample for 3 intervals @5min)
'down_consecutive_threshold' => 3, // 3 missed = DOWN alert
'network_issue_failures' => 2, // 2 fails in last window => NETWORK ISSUE
'network_issue_window' => 20, // last 20 intervals (~100 minutes)
// CORS for summary API (public site pulls from panel). Adjust to your domain or leave '' to disable CORS.
'cors_allow_origin' => '',
];