I'm writing to you in hope to get a help on a problem I'm facing, so basically I created a spring boot rest API for my app and I used AWS Elasticbeanstalk to deploy, now when I try to upload a file to my S3 bucket using the rest API, I'm facing an error saying that the body of my request is too large, even for some image files not larger than 1MB, that has something to do with nginx conf. So please how can I solve that issues.
Here's the error part of the logs of the app: 2023/03/21 05:12:26 [error] 2736#2736: *56 client intended to send too large body: 3527163 bytes, client: ..., server: , request: "POST /mobile/create_post HTTP/1.1", host: "..."
.platform/nginx/conf.d/proxy.conf content: client_max_body_size 50M; I tried this solution by adding .conf file to my projects root folder before building a jar file with "mvn clean install" and then deploy to elastic beanstalk. but it didn't work
2nd Solution I tried, it didn't work .ebextensions/nginx/nginx.conf content: client_max_body_size 50M;