Customizing Nginx Configuration in AWS Elastic Beanstalk

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

    I found a way to restart nginx after deployment using an undocumented technique for running post-deployment scripts. I added this to my .ebextensions:

    files:
      "/opt/elasticbeanstalk/hooks/appdeploy/post/03_restart_nginx.sh":
        mode: "000755"
        owner: root
        group: root
        content: |
          #!/usr/bin/env bash
          service nginx restart
    

提交回复
热议问题