mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
limiter update
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
func RateLimiter() fiber.Handler {
|
func RateLimiter() fiber.Handler {
|
||||||
return limiter.New(limiter.Config{
|
return limiter.New(limiter.Config{
|
||||||
Max: 20,
|
Max: 30,
|
||||||
Expiration: 1 * time.Minute,
|
Expiration: 1 * time.Minute,
|
||||||
KeyGenerator: func(c *fiber.Ctx) string {
|
KeyGenerator: func(c *fiber.Ctx) string {
|
||||||
if ip := c.Get("X-Real-IP"); ip != "" {
|
if ip := c.Get("X-Real-IP"); ip != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user