nginx-ui/settings/auth.go
2024-09-16 23:39:08 +08:00

12 lines
382 B
Go

package settings
type Auth struct {
IPWhiteList []string `json:"ip_white_list" binding:"omitempty,dive,ip" ini:",,allowshadow" protected:"true"`
BanThresholdMinutes int `json:"ban_threshold_minutes" binding:"min=1"`
MaxAttempts int `json:"max_attempts" binding:"min=1"`
}
var AuthSettings = Auth{
BanThresholdMinutes: 10,
MaxAttempts: 10,
}