I'm trying to submit a form with a file to Node+Express server. I set the bodyParser limit to 5M:
app.use(express.bodyParser({ limit: '5mb' }));
It works fine on local machine. However on Heroku I get "Request Entity Too Large" error for files larger than 1M.
How does Heroku put this limit and how it can be changed?
EDIT: The actual error is generated by the nginx and not the node app: