Config needs to end with .yml

This commit is contained in:
Alexandre Iooss 2020-09-27 21:46:33 +02:00
parent 7253ab3b49
commit c80885a2ef
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
1 changed files with 1 additions and 1 deletions

View File

@ -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")