Skip to content

Commit

Permalink
feat(request-bytes): Increase default body size limitation to 100kb
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebruijn committed Oct 14, 2024
1 parent dcb4bbe commit 8ebcfb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ web:
# limit the maximum size of a request body that is allowed
# this helps prevent OOM attacks through excessively large request payloads.
# A limit of `0` disables this protection.
request_body_max_bytes: 10240
request_body_max_bytes: 102400

target:
host: http://localhost:8081
Expand Down
2 changes: 1 addition & 1 deletion internal/app/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ func DefaultConfig() Config {
ShutdownTimeout: 20 * time.Second,
Host: "0.0.0.0:8080",
Path: "/graphql",
RequestBodyMaxBytes: 10_240, // 10kb
RequestBodyMaxBytes: 10_2400, // 100kb
}
}

0 comments on commit 8ebcfb1

Please sign in to comment.