feat: display CrowdSec status on Security page and add tests for start/stop functionality

This commit is contained in:
GitHub Actions
2025-11-30 21:35:34 +00:00
parent 2300925901
commit b2bcbe86bb
2 changed files with 38 additions and 4 deletions

View File

@@ -149,6 +149,9 @@ export default function Security() {
? `Mode: ${status.crowdsec.mode}`
: 'Intrusion Prevention System'}
</p>
{crowdsecStatus && (
<p className="text-xs text-gray-500 dark:text-gray-400">{crowdsecStatus.running ? `Running (pid ${crowdsecStatus.pid})` : 'Stopped'}</p>
)}
{status.crowdsec.enabled && (
<div className="mt-4 flex gap-2">
<Button