From d09e876a72f49bcf943af7ac985071dfee2aef17 Mon Sep 17 00:00:00 2001 From: Roman Zabaluev Date: Thu, 26 Oct 2023 00:05:12 +0800 Subject: [PATCH] Add a config lookup path which matches README paths (/config.yml) --- config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config/config.go b/config/config.go index 399f922..48a053f 100644 --- a/config/config.go +++ b/config/config.go @@ -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)