diff --git a/server/cmd/server/main.go b/server/cmd/server/main.go index fd151a2..262f3cd 100644 --- a/server/cmd/server/main.go +++ b/server/cmd/server/main.go @@ -14,6 +14,7 @@ import ( func main() { cfg := config.Load() + if cfg.YMTKeyDecryptKeyB64 != "" { os.Setenv("YMT_KEY_DECRYPT_KEY_B64", cfg.YMTKeyDecryptKeyB64) } _ = logging.Init("log") log.Println("connecting YMT MySQL:", cfg.YMTDB.Host+":"+cfg.YMTDB.Port, "db", cfg.YMTDB.Name, "user", cfg.YMTDB.User) log.Println("connecting Marketing MySQL:", cfg.MarketingDB.Host+":"+cfg.MarketingDB.Port, "db", cfg.MarketingDB.Name, "user", cfg.MarketingDB.User) @@ -52,4 +53,3 @@ func main() { } // buildDSN deprecated; use cfg.YMTDB.DSN()/cfg.MarketingDB.DSN() - if cfg.YMTKeyDecryptKeyB64 != "" { os.Setenv("YMT_KEY_DECRYPT_KEY_B64", cfg.YMTKeyDecryptKeyB64) }