This commit is contained in:
2026-10-22 18:41:56 +03:00
parent 665c37c0b8
commit 3695ab6dfa
32 changed files with 881 additions and 156 deletions
+6
View File
@@ -3,6 +3,7 @@ package config
import (
"os"
"strconv"
"strings"
"time"
)
@@ -10,6 +11,11 @@ func GetEnv(key, fallback string) string {
if v := os.Getenv(key); v != "" {
return v
}
if p := os.Getenv(key + "_FILE"); p != "" {
if b, err := os.ReadFile(p); err == nil {
return strings.TrimSpace(string(b))
}
}
return fallback
}