mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05: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
7
model/ban_ip.go
Normal file
7
model/ban_ip.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package model
|
||||
|
||||
type BanIP struct {
|
||||
IP string `json:"ip"`
|
||||
Attempts int `json:"attempts"`
|
||||
ExpiredAt int64 `json:"expired_at" gorm:"index"`
|
||||
}
|
|
@ -35,6 +35,7 @@ func GenerateAllModel() []any {
|
|||
Environment{},
|
||||
Notification{},
|
||||
AcmeUser{},
|
||||
BanIP{},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue