Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Fix demo mode detection to use PULSE_MOCK_MODE env var
rcourtmanc04b60c55052
diff --git a/internal/ai/demo.go b/internal/ai/demo.goindex fc309e356e..acd5c063b7 100644--- a/internal/ai/demo.go+++ b/internal/ai/demo.go@@ -2,17 +2,19 @@ package aiimport ("os"+ "strings""time""github.com/rs/zerolog/log")// IsDemoMode returns true if mock/demo mode is enabled-// This checks the same MOCK_ENABLED env var used by the mock data system+// This checks the PULSE_MOCK_MODE env var used by the mock data systemfunc IsDemoMode() bool {- return os.Getenv("MOCK_ENABLED") == "true" || os.Getenv("MOCK_ENABLED") == "1"+ return strings.EqualFold(os.Getenv("PULSE_MOCK_MODE"), "true")}+// InjectDemoFindings populates the patrol service with realistic mock findings// This is used for demo instances to showcase AI features without actual AI API callsfunc (p *PatrolService) InjectDemoFindings() {