diff --git a/docs/configuration.md b/docs/configuration.md index 3eddf6e..b06eec9 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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 diff --git a/internal/app/http/http.go b/internal/app/http/http.go index 9518d1d..7f67f25 100644 --- a/internal/app/http/http.go +++ b/internal/app/http/http.go @@ -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 } }