For an application I deploy on beanstalk, getting the error client intended to send too large body: 1505618 bytes
Platform: Java 8 running on 64bit Amazon Linux/2.11.20
Added .platform/nginx/conf.d/proxy.conf
containing client_max_body_size 64M;
to root.
Added
<resource>
<directory>.platform</directory>
<targetPath>.platform</targetPath>
<filtering>true</filtering>
</resource>
to pom.xml
Not sure why the extension isn’t taking effect, I’m still getting the same error.
2
Answers
Ok got it to resolve with the above (.ebextensions, pom.xml edit) + zipped the JAR file with the .ebextensions folder and uploaded that to beanstalk
Java 8 running on 64bit Amazon Linux/2.11.20
uses Amazon Linux 1 (AL1), not AL2..platform
is only supported in AL2. How to configure nginx on AL1, is described in AWS docs and must be done using.ebextensions
(not.platform
).