package config

import (
	"os"
	"strings"
)

const (
	Version         = "1.0.0"
	DefaultAddr     = "0.0.0.0:5032"
	MutexName       = "LocalManagementAgent_Mutex"
	RequestBodyMax  = 1 << 20
	MaxListEntries  = 10000
	MaxImageQuality = 100
	DefaultExecTO   = 30
	MaxExecTO       = 120
)

func EnvOr(name, fallback string) string {
	if value := strings.TrimSpace(os.Getenv(name)); value != "" {
		return value
	}
	return fallback
}
