I am running the rails application on Ruby 2.0 / Puma instances and trying to configure the nginx configuration. I need to increase the allowed request size to allow file downloads. I found several other posts that made me add this to my .ebextensions:
files: "/etc/nginx/conf.d/proxy.conf" : mode: "000755" owner: root group: root content: | client_max_body_size 70M;
This creates the file as expected, but it doesn't seem to work until I manually restart nginx. Because of this, I tried to figure out a way to restart nginx with the .ebextensions commands, but had no success. Does anyone know how to restart nginx using .ebextensions or find out the best approach to solve this problem?
ruby-on-rails amazon-web-services elastic-beanstalk nginx amazon-elastic-beanstalk
Graham
source share