Customizing Nginx Configuration in AWS Elastic Beanstalk

后端 未结 6 1872
庸人自扰
庸人自扰 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:07

    To reload the nginx config, you can use container_commands

    From http://www.infoq.com/news/2012/11/elastic-beanstalk-config-files:

    The container_commands key allows you to execute commands for your container. They are run after the application and web server have been set up and the application has been extracted, but before the application is deployed. container_commands are processed in lexicographical order by name.

    container_commands:
      01_reload_nginx:
        command: "service nginx reload"
    

提交回复
热议问题