Increase client_max_body_size for Nginx on AWS Elastic Beanstalk. Java 11 Increase client_max_body_size for Nginx on AWS Elastic Beanstalk. Java 11 nginx nginx

Increase client_max_body_size for Nginx on AWS Elastic Beanstalk. Java 11


Here is the solution that worked for me. My mistake is that I was using the configuration for the preceding Amazon Linux 2 platforms. As Vaquar Khan mentions, the link with the correct configuration is this. The section Reverse Proxy Configuration is what I was looking for.

Here is the configuration that increased the NGINX request max body size:

myBundle.zip--myApplication.jar--Procfile--.platform----nginx------conf.d--------myConf.conf 

myConf.conf:

client_max_body_size 50M;