Skip to content

Commit

Permalink
Set correct defaults for Viper config (#30)
Browse files Browse the repository at this point in the history
For maxLoginsPerSecond and maxTraceflowsPerHour.

Signed-off-by: Antonin Bas <[email protected]>
  • Loading branch information
antoninbas authored May 15, 2023
1 parent 8ae70e2 commit 98108b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/config/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ func LoadConfig() (*Config, error) {
}

// You can set defaults for configuration parameters here
// v.SetDefault(<key>, <value>)
v.SetDefault("limits.maxLoginsPerSecond", DefaultMaxLoginsPerSecond)
v.SetDefault("limits.maxTraceflowsPerHour", DefaultMaxTraceflowsPerHour)

// By default, look for a file named config (any supported extension) in the working directory.
v.AddConfigPath(".")
Expand Down

0 comments on commit 98108b2

Please sign in to comment.