feat: add monitoring dashboard under /monitor/

Status page and JSON API read from private/data; root index.php stays a placeholder. Mark todo 06 done.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Frank Schwenk
2026-06-12 15:22:00 +02:00
parent 226bbe1bf7
commit 85ab829805
9 changed files with 433 additions and 20 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
$root = dirname(dirname(__DIR__));
$configDir = is_dir($root . '/private/config')
? $root . '/private/config'
: $root . '/config';
require_once $configDir . '/status-view.php';
$status = formatPublicStatus(loadStatusSnapshot());
header('Content-Type: application/json; charset=utf-8');
header('X-Robots-Tag: noindex');
header('Cache-Control: no-store');
echo json_encode($status, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n";