对于部署在豆茎上的应用程序,获取错误client intended to send too large body: 1505618 bytes
平台:Java 8 running on 64bit Amazon Linux/2.11.20
将包含.platform/nginx/conf.d/proxy.conf的client_max_body_size 64M;添加到根。
已添加
<resource>
<directory>.platform</directory>
<targetPath>.platform</targetPath>
<filtering>true</filtering>
</resource>转到pom.xml
不知道为什么扩展没有生效,我仍然得到同样的错误。
发布于 2022-05-03 01:36:17
Java 8 running on 64bit Amazon Linux/2.11.20 使用Amazon 1 (AL1),而不是AL2。.platform只支持在AL2中。如何在AL1上配置nginx,是用AWS博士描述的,必须使用.ebextensions (而不是.platform)来完成。
发布于 2022-05-03 03:58:06
Ok让它用上面的解析( .ebextensions,pom.xml编辑)+用.ebextensions文件夹压缩JAR文件并上传到豆茎
https://stackoverflow.com/questions/72093698
复制相似问题