Initial commit with project setup and basic structure established.

This commit is contained in:
2026-08-18 16:40:50 +03:00
parent 2683425562
commit f0515d7342
12 changed files with 884 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
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
}