Skip to content

Commit aeade7c

Browse files
committed
change config
1 parent 3eafe81 commit aeade7c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmd/serve.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ var serveCmd = &cobra.Command{
9797
viper.SetDefault("server.refresh", "5m")
9898
viper.SetDefault("rules", []client.Rule{{Name: "Catch All", Key: "*", Contains: []string{"*"}, Skip: false}})
9999

100-
viper.SetConfigName("display") // name of config file (without extension)
101-
viper.SetConfigType("yaml") // REQUIRED if the config file does not have the extension in the name
100+
viper.SetConfigName("options.json") // name of config file (without extension)
102101
viper.AddConfigPath("$HOME/.config/conference-display") // call multiple times to add many search paths
103102
viper.AddConfigPath(".") // optionally look for config in the working directory
104103

0 commit comments

Comments
 (0)