Customizing Nginx Configuration in AWS Elastic Beanstalk

后端 未结 6 1888
庸人自扰
庸人自扰 2021-02-01 23:58

I\'m running a rails application on Ruby 2.0/Puma instances and am trying to customize the nginx configuration. I need to increase the permitted request size to allow file uploa

6条回答
  •  星月不相逢
    2021-02-02 00:00

    I might be a little late with the response here, but I've discovered another, less intrusive way to configure nginx on Elastic Beanstalk. You can specify configuration files for nginx directly by creating an .ebextensions/nginx/conf.d directory. Any config files found inside are automatically copied to your /etc/nginx/conf.d/ directory during the EB deployment. This seems to be a more robust solution.

    Documentation available here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/java-se-nginx.html

    EDIT: As pointed out in comments, Elastic Beanstalk has inconsistent implementations between platforms. The documentation here is for Java SE, and it appears this documentation is not relevant for all platforms.

提交回复
热议问题