docker and workflow

This commit is contained in:
Gabe Farrell 2026-01-21 23:13:47 -05:00
parent 656b5fd9c5
commit e60b83ebc8
3 changed files with 63 additions and 1 deletions

View file

@ -6,6 +6,7 @@ import (
"net/http/httputil"
"net/url"
"os"
"path"
"strings"
"gopkg.in/yaml.v3"
@ -24,7 +25,11 @@ var urlMap map[string]string
func main() {
// 1. Load and Parse Config
if err := loadConfig("config.yml"); err != nil {
cfgDir := os.Getenv("KMP_CONFIG_DIR")
if cfgDir == "" {
cfgDir = "/etc/kmp"
}
if err := loadConfig(path.Join(cfgDir, "config.yml")); err != nil {
log.Fatalf("Failed to load configuration: %v", err)
}