echo settings: enable rate-limiting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-05-10 17:48:02 +02:00
parent 30347cd485
commit 813d0c233e
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -37,6 +37,9 @@ func (a *App) SetEchoSettings() {
// }, // },
// })) // }))
// TODO: have this in the config.
e.Use(middleware.RateLimiter(middleware.NewRateLimiterMemoryStore(20)))
e.Use(middleware.Recover()) e.Use(middleware.Recover())
e.Use(session.Middleware( e.Use(session.Middleware(