Please help me to override Nginx config on Corretto 17 running on 64bit Amazon Linux 2023

0

Hi,

I am currently experiencing an issue with request sizes exceeding 1MB, resulting in a "413 Request Too Large" error from my server. In my search for a solution, I came across a fix for an older version of Elastic Beanstalk (eb).

Could someone kindly suggest how to configure the server file via AWS Elastic Beanstalk when uploading a file? I am currently using Spring Boot and building the file as a war file.

Additionally, I am wondering how to include the proxy.conf in my source package. Currently, I am archiving .platform and web.war, but upon deployment, I encounter an error indicating the absence of a Procfile.

My source bundle

.platform I created file from answer in https://stackoverflow.com/questions/18908426/increasing-client-max-body-size-in-nginx-conf-on-aws-elastic-beanstalk/61943622#61943622?newreg=8bf50b5edc594d538286ca5ed1757a9b

Thank you.

asked 3 months ago157 views
1 Answer
0

Hello.

If you place the nginx configuration file under ".platform/nginx/conf.d/", it will be set at the time of deployment.
https://repost.aws/knowledge-center/elastic-beanstalk-nginx-configuration
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-linux-extend.html#platforms-linux-extend.example

profile picture
EXPERT
answered 3 months ago
  • Hi,

    I've tried the provided solution, but it doesn't seem to work for the platform type Corretto 17 running on 64-bit Amazon Linux 2023. Do you have an alternative solution?

    Thank you.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions