我有一个问题,当我想最大限度地在elasticbeanstalk上使用nginx的上传大小,我创建.platform/nginx/conf.d/proxy.conf:
client_max_body_size 100M;
然后我提交并部署它工作了一段时间,我可以上传大尺寸的文件与我的仪表板但经过一段时间(10 ->15分钟后,日志中出现一个错误
21311#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: ***.**.**.***, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "***.**.**.**"
有什么建议来解决这个问题吗?对于有同样问题的人…我找到的解决方案是将.conf文件放在
中。.platform nginx conf.d elasticbeanstalk/proxy.conf
与内容
client_max_body_size 1G;
proxy_buffering off;
proxy_request_buffering off;
it worked for me
你在127.0.0.1:8080运行的应用程序是什么?看起来8080端口的应用程序超时或超过最大上传大小。