Skip to content

Commit

Permalink
Merge branch 'release/0.1.5' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Mar 23, 2021
2 parents 0a089e8 + dd80562 commit 9e5c1d6
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions docs/thehive/installation-and-configuration/configuration/misc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 9e5c1d6

Please sign in to comment.