local edits
This commit is contained in:
parent
3ab7aeb19e
commit
ea75fef77b
10 changed files with 136 additions and 44 deletions
24
status/api/config.php.example
Normal file
24
status/api/config.php.example
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?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' => '',
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue