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.

333 B
Raw Blame
//go:build !release

package api

import (
	"os"
	"strings"
)

func resolveAdminBypassEnv() (enabled, declined bool) {
	if os.Getenv("ALLOW_ADMIN_BYPASS") != "1" {
		return false, false
	}
	if os.Getenv("PULSE_DEV") == "true" || strings.EqualFold(os.Getenv("NODE_ENV"), "development") {
		return true, false
	}
	return false, true
}