"Nginx Proxy Manager" causing failure when uploading files

If you’re using docker there’s probably another nginx proxy already running inside the container anyway. So my guess is that you don’t need to define a “custom location” in your nginx proxy manager. However, you probably do have to add that extra port in the “advanced” tab of your proxy manager.

Here’s my nginx config that’s running in a container for an actual nginx conf (and not through the proxy manager gui):

location / {
    proxy_read_timeout 310s;
    proxy_set_header Host $host;
    proxy_set_header Forwarded "for=$remote_addr;proto=$scheme";
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Connection "";
    proxy_http_version 1.1;
    proxy_pass http://localhost:4001;
    client_max_body_size 100m;
  }

I think you may need the last two lines in your advanced tab (obviously with the port number you have in your config)

proxy_pass http://localhost:4001;
client_max_body_size 100m;