refactor: rename deploy/k8s to deploy/kubernetes; add SetEnvKeyReplacer for env var support in K8s

This commit is contained in:
attacker committed 2026-06-24 04:02:26 +00:00
1 parent d581441fa8
commit bbf06204cc
15 files changed
+226 -44

No files matched your search

+2
View File
@@ -7,6 +7,7 @@ import (
"net/http"
"os"
"os/signal"
"strings"
"syscall"
"time"
@@ -245,6 +246,7 @@ func loadConfig() *config.Config {
}
// 环境变量覆盖 // Logan.Li
viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
viper.AutomaticEnv()
// CLI flags 覆盖(最高优先级)// Logan.Li