Files
html/api/health-mm.php
2026-04-12 22:57:03 +02:00

5 lines
244 B
PHP

<?php
header('Content-Type: application/json');
$r = @file_get_contents('http://127.0.0.1:8065/', false, stream_context_create(['http'=>['timeout'=>5]]));
echo json_encode(['status' => $r !== false ? 'ok' : 'down', 'service' => 'mattermost']);