Skip to content

Commit

Permalink
Merge pull request #39 from Haarolean/fix/config_path
Browse files Browse the repository at this point in the history
Add a config lookup path which matches README paths (/config.yml)
  • Loading branch information
toxuin authored Oct 26, 2023
2 parents b154b93 + d09e876 commit 52d31e4
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 52d31e4

Please sign in to comment.