updates to rate limiter

This commit is contained in:
amy
2026-11-08 18:48:30 -07:00
parent 9cf826075f
commit 9db7d4604f
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -64,6 +64,7 @@ func setupEcho() *echo.Echo {
e.Logger = slog.New(NewSlogLogrusHandler())
e.Renderer = &ui.TemplateRenderer{}
e.HTTPErrorHandler = AmErrorHandler
e.IPExtractor = echo.LegacyIPExtractor()
if !config.CommandLine.DebugPanic {
e.Use(middleware.RecoverWithConfig(middleware.RecoverConfig{
StackSize: int(config.GlobalComputedConfig.PanicRecoveryStack),