I am runing a node app on nginx under Ubuntu and I am having problems uploading a 200M json file. On my local I use nginx on a Mac and I am not having this limit issue.
I have set the nginx.conf
http client max size to 0 and 1000M but I am still getting the error
/etc/nginx/nginx.conf
http {
client_max_body_size 1000M;
...
On the front end I use express and have done this but I am not sure if the problem is only with nginx
server.js
app.use(express.json({ limit: '1000mb' }))
app.use(express.urlencoded({ limit: '1000mb', extended: true }))
/var/log/nginx/error.log
2021/12/20 11:08:42 [error] 5451#5451: *4 client intended to send too large body: