Customizing Nginx Configuration in AWS Elastic Beanstalk

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

    I got it working like this. No need to restart or reload nginx since the commands (and not container_commands) runes BEFORE the application deploy.

    commands: 
      01-get-nginx-conf-file:
        command: "aws s3 cp s3://somepath/nginx.conf /home/ec2-user"
      02-replace-default-nginx-config:
        command: "cp /home/ec2-user/nginx.conf /etc/nginx/nginx.conf"
    

提交回复
热议问题