Follow-up to the archive feature: archived healthchecks showed in both the main All-sites list and the Archived section. allSitesSummary() now excludes archived sessions from the aggregate (and from the per-site "latest session" detail), so a site whose sessions are all archived drops off the main list and appears only under "Archived". A site with a mix keeps its row, counting only its live sessions. The per-site page still lists every session. Also bumps the server version baseline in config.php.example to 0.1.8. 2 new tests (51 total). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
<?php
|
|
// Copy to config.php on each deploy. Never commit config.php.
|
|
//
|
|
// Generate a fresh API key with:
|
|
// php -r 'echo bin2hex(random_bytes(32)), PHP_EOL;'
|
|
|
|
return [
|
|
// Shared secret. Plugin sends this as `Authorization: Bearer <key>`.
|
|
'api_key' => 'REPLACE_WITH_A_LONG_RANDOM_STRING',
|
|
|
|
// PDO DSN.
|
|
//
|
|
// MySQL (recommended when pdo_sqlite isn't available — older Ubuntu boxes
|
|
// tend to be in this state):
|
|
// 'db_dsn' => 'mysql:host=localhost;dbname=att_hc;charset=utf8mb4'
|
|
// 'db_user' => 'att_hc'
|
|
// 'db_pass' => '<password>'
|
|
//
|
|
// See DEPLOY.md → "MySQL setup" for the CREATE DATABASE / CREATE USER /
|
|
// GRANT statements.
|
|
//
|
|
// SQLite (simplest when the box has php8.x-sqlite3 installed):
|
|
// 'db_dsn' => 'sqlite:' . __DIR__ . '/data/att_hc.sqlite'
|
|
// 'db_user' => null
|
|
// 'db_pass' => null
|
|
'db_dsn' => 'mysql:host=localhost;dbname=att_hc;charset=utf8mb4',
|
|
'db_user' => 'att_hc',
|
|
'db_pass' => 'REPLACE_WITH_DB_PASSWORD',
|
|
|
|
// Server version, surfaced on GET /. Bump on deploy.
|
|
'version' => '0.1.8',
|
|
];
|