title: Change nginx.conf on Elastic Beanstalk?
body: <p>So all I'm trying to do is add &quot;client_max_body_size  5000m;&quot; to my nginx.conf file.</p>
  <p>I can ssh in and add the line manually, and that will work, but I know there's a way to do that automatically with my files in the .ebextensions folder.</p>
  <p>If I use</p>
  <pre><code>files:
    &quot;/etc/nginx/nginx.conf&quot;:
      mode: &quot;000644&quot;
      owner: root
      group: root
      content: |
          #Elastic Beanstalk Nginx Configuration File...
  </code></pre>
  <p>nothing seems to change.</p>
  <p>if I use</p>
  <pre><code>files:
    /.platform/nginx/conf.d/proxy.conf:
      mode: &quot;000644&quot;
      owner: root
      group: root
      content: |
          #Elastic Beanstalk Nginx Configuration File...
  </code></pre>
  <p>I can see that the proxy.conf file is where I would expect it to be, but it still has no impact on my nginx settings, even though the AWS documentation and other posts on here would lead me to believe that EB should copy that file into /etc/nginx/conf.d/elasticbeanstalk/
  but it does not, and manually specifying anywhere other than .platform doesn't seem to do anything.
  I feel like I'm close, but for the life of me I can't figure it out.</p>