Skip to content

Error 413 when uploading pictures >8MB #14168

Discussion options

You must be logged in to vote

We went through the same thing. It's not a NetBox issue, it's a web server setting in the docker config. You need to add this setting to the docker/nginx-unit.json file.

"settings": {
  "http": {
    "max_body_size": <int in bytes>
  }
}

Then you need to rebuild the container and have the file copied over. We did something like this in the Dockerfile:

COPY docker/nginx-unit.json /etc/unit/

That's been working for us nicely.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by PaulR282
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #14159 on November 02, 2023 04:07.