Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

fix: Ensure Env Var takes precedence over system settings for HideLocalLogin. Related to #857

rcourtman6bb272d3dcad
diff --git a/internal/api/router.go b/internal/api/router.go
index bbe5a965f6..79c6b70e3f 100644
--- a/internal/api/router.go
+++ b/internal/api/router.go
@@ -1855,7 +1855,10 @@ func (r *Router) reloadSystemSettings() {
r.cachedAllowedOrigins = systemSettings.AllowedEmbedOrigins
// Update HideLocalLogin so it takes effect immediately without restart
- r.config.HideLocalLogin = systemSettings.HideLocalLogin
+ // BUT respect environment variable override if present
+ if !r.config.EnvOverrides["PULSE_AUTH_HIDE_LOCAL_LOGIN"] {
+ r.config.HideLocalLogin = systemSettings.HideLocalLogin
+ }
// Update webhook allowed private CIDRs in notification manager
if r.monitor != nil {