【发布时间】:2015-03-17 19:39:21
【问题描述】:
我在项目中上传大图像时遇到问题,我的配置是 puma 和 RoR。我在 elasticbeanstalk 中的用户是 ec2-user。
我已经尝试了许多我看到的配置,但它无法正常工作。 .ebextensions 中的文件是这样的:
files:
"/etc/nginx/conf.d/proxy.conf" :
mode: "000777"
owner: root
group: root
content: |
client_max_body_size 4G;
其他配置但不起作用
files:
"/etc/nginx/conf.d/proxy.conf" :
mode: "000755"
owner: ec2-user
group: ec2-user
content: |
client_max_body_size 50M;
文件已创建但没有成功。有什么建议?谢谢。
【问题讨论】:
标签: ruby-on-rails amazon-web-services nginx amazon-ec2 amazon-elastic-beanstalk