mirror of
https://github.com/strapi/strapi.git
synced 2025-12-12 07:27:46 +00:00
Add more information about the parser middleware configuration (#7253)
* Add more information about the parser middleware configuration Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com> * fix integer case Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
This commit is contained in:
parent
cba02febf2
commit
28b66d284f
@ -171,9 +171,11 @@ The following middlewares cannot be disabled: responses, router, logger and boom
|
||||
- `level` (string): Default log level. Default value: `debug`.
|
||||
- `exposeInContext` (boolean): Expose logger in context so it can be used through `strapi.log.info(‘my log’)`. Default value: `true`.
|
||||
- `requests` (boolean): Enable or disable requests logs. Default value: `false`.
|
||||
- `parser`
|
||||
- `parser` (See [koa-body](https://github.com/dlau/koa-body#options) for more information)
|
||||
- `enabled`(boolean): Enable or disable parser. Default value: `true`.
|
||||
- `multipart` (boolean): Enable or disable multipart bodies parsing. Default value: `true`.
|
||||
- `jsonLimit` (string|integer): The byte (if integer) limit of the JSON body. Default value: `1mb`.
|
||||
- `formLimit` (string|integer): The byte (if integer) limit of the form body. Default value: `56k`.
|
||||
|
||||
::: tip
|
||||
The session doesn't work with `mongo` as a client. The package that we should use is broken for now.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user