feat: bind all applicable env vars to config values
continuous-integration/drone/push Build is passing Details

main
RaviAnand Mohabir 1 year ago
parent 62f918f33a
commit 40899d1705

@ -19,7 +19,12 @@ func main() {
viper.SetDefault("server.scheme", "http") viper.SetDefault("server.scheme", "http")
viper.SetDefault("server.host", "localhost:5001") viper.SetDefault("server.host", "localhost:5001")
viper.BindEnv("spotify.clientid", "SPOTIFY_CLIENT_ID")
viper.BindEnv("spotify.clientsecret", "SPOTIFY_CLIENT_SECRET")
viper.BindEnv("mongodb.uri", "MONGODB_URI") viper.BindEnv("mongodb.uri", "MONGODB_URI")
viper.BindEnv("server.sessionkey", "SERVER_SESSION_KEY")
viper.BindEnv("server.scheme", "SERVER_SCHEME")
viper.BindEnv("server.host", "SERVER_HOST")
cmd.Execute() cmd.Execute()
} }

Loading…
Cancel
Save