Skip to content

Instantly share code, notes, and snippets.

@pdrok
Last active July 18, 2024 09:13
Show Gist options
  • Save pdrok/24d94ae412d2e29edfef6d0b898b0bd9 to your computer and use it in GitHub Desktop.
Save pdrok/24d94ae412d2e29edfef6d0b898b0bd9 to your computer and use it in GitHub Desktop.
How to fix a "413 request entity too large" error on AWS Elastic Beanstalk

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

Source

@pdrok
Copy link
Author

pdrok commented Jul 18, 2024

@pdrok can you please share what should be configured in the Docker, thanks

I didn't use docker for that configuration, It was a nodejs aplication that I deployed directly on the AWS Elastic Beanstalk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment