diff --git a/docs/thehive/installation-and-configuration/configuration/misc.md b/docs/thehive/installation-and-configuration/configuration/misc.md index c686367a..d52602c5 100644 --- a/docs/thehive/installation-and-configuration/configuration/misc.md +++ b/docs/thehive/installation-and-configuration/configuration/misc.md @@ -2,14 +2,22 @@ ## Manage content lengh -Content length of text and files managed by the application are limited by default. Before TheHive 4.1.1, they were set to very small values. -Default values in TheHive 4.1.1 are set with these default parameters: +Content length of text and files managed by the application are limited by default. -``` +**Before TheHive v4.1.1**, the Play framework sets the HTTP body size limit to 100KB by default for textual content (json, xml, text, form data) and 10MB for file uploads. + +**Since TheHive v4.1.1**, these values are set with default parameters: + +```yaml +# Max file size play.http.parser.maxDiskBuffer: 128MB +# Max textual content length play.http.parser.maxMemoryBuffer: 256kB ``` -If you feel that these should be updated, edit `/etc/thehive/application.conf` file and update these parameters. - +If you feel that these should be updated, edit `/etc/thehive/application.conf` file and update these parameters accordingly. +!!! tip + if you are using a NGINX reverse proxy in front of TheHive, be aware that it doesn't distinguish between text data and a file upload. + + So, you should also set the `client_max_body_size` parameter in your NGINX server configuration to the highest value among the two: file upload and text size defined in TheHive application.conf file. \ No newline at end of file