limiter update

This commit is contained in:
Ravi Prasad
2026-05-05 22:52:39 -05:00
parent 6376cdbe9d
commit c66a2d5d06
+1 -1
View File
@@ -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 != "" {