Config needs to end with .yml
This commit is contained in:
parent
7253ab3b49
commit
c80885a2ef
2
main.go
2
main.go
|
@ -23,7 +23,7 @@ func loadConfiguration() {
|
||||||
viper.AutomaticEnv()
|
viper.AutomaticEnv()
|
||||||
|
|
||||||
// Load configuration file if exists
|
// Load configuration file if exists
|
||||||
viper.SetConfigName("ghostream")
|
viper.SetConfigName("ghostream.yml")
|
||||||
viper.SetConfigType("yaml")
|
viper.SetConfigType("yaml")
|
||||||
viper.AddConfigPath("$HOME/.ghostream")
|
viper.AddConfigPath("$HOME/.ghostream")
|
||||||
viper.AddConfigPath("/etc/ghostream")
|
viper.AddConfigPath("/etc/ghostream")
|
||||||
|
|
Loading…
Reference in New Issue