diff --git a/dot_env b/dot_env index 5b7a96f..c67db39 100644 --- a/dot_env +++ b/dot_env @@ -15,6 +15,7 @@ HTTP_IDLE_TIMEOUT=60s DETECTION_INTERVAL=1m OFFLINE_AFTER=10m +OFFLINE_ALERT_MAX=120m FAILED_LOGON_WINDOW=5m FAILED_LOGON_THRESHOLD=25 REBOOT_WINDOW=15m diff --git a/main.go b/main.go index 5ec8b66..1730c36 100644 --- a/main.go +++ b/main.go @@ -56,6 +56,13 @@ const uiTemplates = ` button { padding: 10px 14px; background: #2563eb; color: white; border: 0; border-radius: 8px; cursor: pointer; } pre { white-space: pre-wrap; word-break: break-word; background: #111827; color: #e5e7eb; padding: 16px; border-radius: 10px; } a { color: #2563eb; text-decoration: none; } + .badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: bold; } + .badge-on { background: #dcfce7; color: #166534; } + .badge-off { background: #fee2e2; color: #991b1b; } + .badge-muted { background: #e5e7eb; color: #374151; } + .inline-form { display: inline; } + button.danger { background: #dc2626; } + button.success { background: #16a34a; } @@ -63,6 +70,7 @@ const uiTemplates = `
SIEM-lite