Skip to content

Commit

Permalink
discover redis connection params via env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Mar 13, 2016
1 parent 8974c56 commit 9c3942b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ func Main() {
viper.BindEnv("history_size")
viper.BindEnv("history_lifetime")
viper.BindEnv("history_drop_inactive")
viper.BindEnv("redis_host")
viper.BindEnv("redis_port")
viper.BindEnv("redis_url")

viper.BindPFlag("port", cmd.Flags().Lookup("port"))
viper.BindPFlag("api_port", cmd.Flags().Lookup("api_port"))
Expand Down

0 comments on commit 9c3942b

Please sign in to comment.