title: Uploading large files to AWS Elastic Beanstalk / nginx
body: <p>I have an application that uploads a file which works fine on Heroku and on local developer machines - but on AWS EB, the upload is interrupted and doesn't complete.</p>
  <p>I've set the nginx directives as follows</p>
  <p><strong>.ebextensions/00_project.config</strong></p>
  <pre><code>files:
      &quot;/etc/nginx/conf.d/proxy.conf&quot; :
          mode: &quot;000755&quot;
          owner: root
          group: root
          content: |
              client_max_body_size 2000M
              client_body_buffer_size 2000M
  option_settings:
    &quot;aws:elasticbeanstalk:container:python&quot;:
      WSGIPath: server:application
  </code></pre>
  <p><strong>.platform/nginx/conf.d/proxy.conf</strong></p>
  <pre><code>client_max_body_size 2000M;
  client_body_buffer_size 2000M;
  </code></pre>
  <p><strong>.platform/nginx/00_myconf.config</strong></p>
  <pre><code>container_commands:
    01_reload_nginx:
      command: &quot;service nginx reload&quot;
  </code></pre>
  <p>This is running python3.8 and using a plotly/react framework called Dash. <a href="https://dash.plotly.com/introduction" rel="nofollow noreferrer">https://dash.plotly.com/introduction</a></p>
  <p>As mentioned, it's only not working on AWS so it appears to be a system config issue. To confirm this, I uploaded a large file to a public bucket and had this app read from the bucket instead of the upload and it worked fine.</p>
  <p>I've exhausted all options so any help muchly appreciated!</p>