mirror of https://github.com/vernonkeenan/lib
parent
7838d52d14
commit
e59e67381e
|
@ -32,7 +32,7 @@ func InitConfig(systemName string, initalLogLevel zapcore.Level) {
|
||||||
sugar.Infof("app.InitConfig: 📥 %s", systemName)
|
sugar.Infof("app.InitConfig: 📥 %s", systemName)
|
||||||
appViper.SetConfigType("yaml")
|
appViper.SetConfigType("yaml")
|
||||||
appViper.SetConfigName(systemName)
|
appViper.SetConfigName(systemName)
|
||||||
appViper.AddConfigPath("/etc/kvision")
|
appViper.AddConfigPath("/etc/vernonkeenan")
|
||||||
appViper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
|
appViper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
|
||||||
appViper.SetEnvPrefix("kvision")
|
appViper.SetEnvPrefix("kvision")
|
||||||
appViper.AutomaticEnv() // read in environment variables that match
|
appViper.AutomaticEnv() // read in environment variables that match
|
||||||
|
|
Loading…
Reference in New Issue