netbox-docker/docker
Alexander Hofstätter e62af8be76
Increase default NGINX Unit request body limit to 100 MB in docker/nginx-unit.json
The current NGINX Unit configuration in netbox-docker implicitly limits
incoming HTTP request bodies to roughly 2.5 MB. This causes file uploads
(custom scripts, attachments, etc.) to fail with HTTP 413 before they
reach Django, even when NetBox settings like FILE_UPLOAD_MAX_MEMORY_SIZE
are raised.

This change adds a settings block to docker/nginx-unit.json to raise
the default limit:

{
  "settings": {
    "http": {
      "max_body_size": 104857600
    }
  }
}

With this change, new deployments can handle uploads up to 100 MB out
of the box, aligning the container default with the capabilities of
NetBox core and preventing unexpected 413 errors.

Fixes: https://github.com/netbox-community/netbox-docker/issues/897
2025-09-13 13:06:29 +02:00
..
configuration.docker.py Fix #653: Add missing __dir__ to configuration.py 2021-11-30 11:19:49 +01:00
docker-entrypoint.sh Prepare for Netbox 4.0 2024-04-17 14:09:24 +02:00
launch-netbox.sh Update Ubuntu und Nginx Unit 2023-05-11 08:09:56 +02:00
ldap_config.docker.py Use black as formatter for python files 2021-02-08 18:24:29 +01:00
nginx-unit.json Increase default NGINX Unit request body limit to 100 MB in docker/nginx-unit.json 2025-09-13 13:06:29 +02:00
unit.list Update Nginx Unit 2025-03-14 17:12:42 +01:00