Have you tried changing client_max_body_size
in your nginx config?
http {
...
client_max_body_size 200M;
}
Just remember that you’ll need to restart/reload nginx once you’ve made any changes there.
Also, i see you’ve commented out the bodyParser.json limit. If you’re sending your images as a base64 encoded value - you will likely need to add that back in and increase it (all depending on your use case) - e.g.:
server.use(bodyParser.json({ limit: '20mb' })) // I'm not sure of the platform limitations here