Skip to content

Commit

Permalink
Increased default body limit to 500K
Browse files Browse the repository at this point in the history
  • Loading branch information
runabol committed Dec 24, 2024
1 parent 65363d1 commit 4baaf95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configs/sample.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ enabled = false
key = "" # if left blank, it will auto-generate a key and print it to the logs on startup

[middleware.web]
bodylimit = 64K # Limit can be specified as 4x, where x is one of the multiple from K, M, G, T or P.
bodylimit = "500K" # Limit can be specified as 4x, where x is one of the multiple from K, M, G, T or P.


# rate limiter middleware
Expand Down
2 changes: 1 addition & 1 deletion engine/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func echoMiddleware(ds datastore.Datastore) []echo.MiddlewareFunc {
}

// body limit
bodyLimit := conf.StringDefault("middleware.web.bodylimit", "64K")
bodyLimit := conf.StringDefault("middleware.web.bodylimit", "500K")
mw = append(mw, middleware.BodyLimit(bodyLimit))

loggerEnabled := conf.BoolDefault("middleware.web.logger.enabled", true)
Expand Down

0 comments on commit 4baaf95

Please sign in to comment.