Set type to yaml
This commit is contained in:
parent
4464c878e9
commit
be7920d0d0
1
main.go
1
main.go
|
@ -26,6 +26,7 @@ func setupConfiguration() {
|
||||||
viper.AutomaticEnv()
|
viper.AutomaticEnv()
|
||||||
|
|
||||||
viper.SetConfigName("ottomate")
|
viper.SetConfigName("ottomate")
|
||||||
|
viper.SetConfigType("yaml")
|
||||||
viper.AddConfigPath("/etc/ottomate/")
|
viper.AddConfigPath("/etc/ottomate/")
|
||||||
viper.AddConfigPath("$HOME/.ottomate")
|
viper.AddConfigPath("$HOME/.ottomate")
|
||||||
viper.AddConfigPath(".")
|
viper.AddConfigPath(".")
|
||||||
|
|
Loading…
Reference in New Issue