Customizing Nginx Configuration in AWS Elastic Beanstalk

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

    this is my configuration and worked for me. You have to include it inside of the http block.

    files:
      "/etc/nginx/conf.d/proxy.conf" :
        mode: "000755"
        owner: root
        group: root
        content: |
            http {
              client_max_body_size 20M;
            }
    

提交回复
热议问题