mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
2e784084c7
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
16 lines
490 B
Go
16 lines
490 B
Go
package schema
|
|
|
|
// RegulationConfiguration represents the configuration related to regulation.
|
|
type RegulationConfiguration struct {
|
|
MaxRetries int `mapstructure:"max_retries"`
|
|
FindTime string `mapstructure:"find_time"`
|
|
BanTime string `mapstructure:"ban_time"`
|
|
}
|
|
|
|
// DefaultRegulationConfiguration represents default configuration parameters for the regulator.
|
|
var DefaultRegulationConfiguration = RegulationConfiguration{
|
|
MaxRetries: 3,
|
|
FindTime: "2m",
|
|
BanTime: "5m",
|
|
}
|