feat: support redis rate limiting
This commit is contained in:
@@ -34,6 +34,15 @@ type RateLimit struct {
|
||||
WindowSeconds int
|
||||
Message string
|
||||
SkipPaths []string
|
||||
Redis *RateLimitRedis
|
||||
}
|
||||
|
||||
type RateLimitRedis struct {
|
||||
Addrs []string
|
||||
Username string
|
||||
Password string
|
||||
DB int
|
||||
Prefix string
|
||||
}
|
||||
|
||||
type Whitelist struct {
|
||||
|
||||
Reference in New Issue
Block a user