in cmd/root.go [43:67]
func initConfig() {
viper.SetEnvPrefix("dex_api")
viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_", ".", "_"))
viper.AutomaticEnv()
if host := viper.GetString("host"); host != "" {
config.Host = host
}
if port := viper.GetString("port"); port != "" {
config.Port = port
}
if caPath := viper.GetString("ca-path"); caPath != "" {
config.CaPath = caPath
}
if clientCrt := viper.GetString("client-crt"); clientCrt != "" {
config.ClientCrt = clientCrt
}
if clientKey := viper.GetString("client-key"); clientKey != "" {
config.ClientKey = clientKey
}
}