The ngx_http_read_request_body_module module allows gain access to $request_body variable, even if not of *_pass (proxy_pass, fastcgi_pass, etc.) directives is being used in current location
location / {
read_request_body;
}Syntax: read_request_body; Default: — Context: server, location
Read request body and made available $request_body variable.
Note: $request_body sets if only it's size less than client_body_buffer_size. For more information: official documentation.