requestSizeLimit

requestSizeLimit

Description

Controls the maximum request body size. If the value is a number, it specifies a number of bytes; strings such as '100kb' or '50mb' can also be used. The default is '10mb'.

Raise this when the application accepts large uploads or large JSON payloads. Requests larger than the limit are rejected before the application sees them.

Example

Allow request bodies of up to 50 MB:

requestSizeLimit: '50mb'

For information on how to modify this setting, see Configuration File.