So, I'm developing an nodejs app and the moment I put the application on an online server a problem happens that I can not solve. I am using nginx as a proxy for port 3000 which is where I have the nodejs app running.
In my app, I have a form where it is possible to upload an image, in localhost it always worked correctly, but now in the Google Cloud Platform instance it is not working.
Initially, 'Error 413 Request Entity Too Large' occurred, and I was able to solve this by adding the line
client_max_body_size 10M;
to the nginx.conf configuration file.
The problem now is that when uploading an 8MB image, error 413 is not returned, but image uploading is not done either.
PS: I use the formidable to handle the data received from the server side.
(SOLVED)
Adding the line in the nginx configuration helped as well as increasing the server timeout (express). But the problem was related to the processing that was done in the images, in which they need more memory, than the memory that was free.