Skip to content

Commit

Permalink
Add a config lookup path which matches README paths (/config.yml)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean committed Oct 25, 2023
1 parent b154b93 commit d09e876
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func (c *Config) SetDefaults() {
viper.SetConfigType("yaml")
viper.AddConfigPath(".")
viper.AddConfigPath("./config/")
viper.AddConfigPath("/config/")

viper.SetDefault("debug", false)
viper.SetDefault("mqtt.port", 1883)
Expand Down

0 comments on commit d09e876

Please sign in to comment.