Skip to content

Commit 2521a02

Browse files
committed
change config
1 parent aeade7c commit 2521a02

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/serve.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ 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("options.json") // name of config file (without extension)
100+
viper.SetConfigName("options") // name of config file (without extension)
101101
viper.AddConfigPath("$HOME/.config/conference-display") // call multiple times to add many search paths
102+
viper.AddConfigPath("/data") // optionally look for config in the working directory
102103
viper.AddConfigPath(".") // optionally look for config in the working directory
103104

104105
viper.SetEnvPrefix("DISPLAY")

0 commit comments

Comments
 (0)