mirror of
https://github.com/yanislav-igonin/micrach
synced 2025-01-03 03:58:45 +03:00
fix: disable rate limiter (need to be configured properly)
This commit is contained in:
parent
c8c9850625
commit
84cd830a7f
9
main.go
9
main.go
@ -9,10 +9,11 @@ import (
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/middleware/compress"
|
||||
"github.com/gofiber/fiber/v2/middleware/etag"
|
||||
"github.com/gofiber/fiber/v2/middleware/limiter"
|
||||
"github.com/gofiber/fiber/v2/middleware/recover"
|
||||
"github.com/gofiber/template/html"
|
||||
|
||||
// "github.com/gofiber/fiber/v2/middleware/limiter"
|
||||
|
||||
"micrach/build"
|
||||
"micrach/config"
|
||||
"micrach/controllers"
|
||||
@ -49,9 +50,9 @@ func main() {
|
||||
app := fiber.New(fiber.Config{Views: engine})
|
||||
|
||||
app.Use(recover.New())
|
||||
app.Use(limiter.New(limiter.Config{
|
||||
Next: func(c *fiber.Ctx) bool { return c.IsFromLocal() },
|
||||
}))
|
||||
// app.Use(limiter.New(limiter.Config{
|
||||
// Next: func(c *fiber.Ctx) bool { return c.IsFromLocal() },
|
||||
// }))
|
||||
app.Use(compress.New())
|
||||
app.Use(etag.New())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user