1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-23 01:32:19 +00:00

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

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