mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
feat: add login failed ban ip list
This commit is contained in:
parent
ccb04c07d8
commit
cff843b82b
43 changed files with 2264 additions and 959 deletions
|
@ -1,9 +1,12 @@
|
|||
package settings
|
||||
|
||||
type Auth struct {
|
||||
IPWhiteList []string `ini:",,allowshadow"`
|
||||
IPWhiteList []string `json:"ip_white_list" binding:"omitempty,dive,ip" ini:",,allowshadow"`
|
||||
BanThresholdMinutes int `json:"ban_threshold_minutes" binding:"min=1"`
|
||||
MaxAttempts int `json:"max_attempts" binding:"min=1"`
|
||||
}
|
||||
|
||||
var AuthSettings = Auth{}
|
||||
var AuthSettings = Auth{
|
||||
BanThresholdMinutes: 10,
|
||||
MaxAttempts: 10,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue