echo settings: enable rate-limiting
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
30347cd485
commit
813d0c233e
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user