I am using amazon elastic beanstalk for my nodejs website with nginx as proxy. I want to set the maximum upload size to 20mb as the default size is 1mb. I have tried all possible ways of setting up client_max_body_size in .ebextensions/.config file. But none seem to be working as i still get the 413 error. Below is my config file
container_commands:
01_reload_nginx:
command: "sudo service nginx reload"
files:
"/etc/nginx/conf.d/proxy.conf" :
mode: "000644"
owner: root
group: root
content: |
client_max_body_size 20M;