The .conf
files directory have to be .platform/nginx/conf.d/elasticbeanstalk
Create a new file called .platform/nginx/conf.d/01_client_size.conf
and paste in the following:
client_max_body_size 20M;
You don't need to restart the nginx manually, when you deploy it restart the services.
Thanks
I didn't use docker for that configuration, It was a nodejs aplication that I deployed directly on the AWS Elastic Beanstalk