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: respect X-Forwarded-Proto header for hasHTTPS in /api/security/status

rcourtman16f143d925d3
diff --git a/internal/api/router.go b/internal/api/router.go
index eca4ad2060..8748d12607 100644
--- a/internal/api/router.go
+++ b/internal/api/router.go
@@ -549,7 +549,7 @@ func (r *Router) setupRoutes() {
"configuredButPendingRestart": configuredButPendingRestart,
"hasAuditLogging": hasAuditLogging,
"credentialsEncrypted": credentialsEncrypted,
- "hasHTTPS": req.TLS != nil,
+ "hasHTTPS": req.TLS != nil || strings.EqualFold(req.Header.Get("X-Forwarded-Proto"), "https"),
"clientIP": clientIP,
"isPrivateNetwork": isPrivateNetwork,
"isTrustedNetwork": isTrustedNetwork,