title: Increasing worker_connections of nginx on Beanstalk nodejs environment
body: <p>I am trying to increase the number of possible <code>worker_connections</code> of my nginx on my Beanstalk nodejs server (<strong>Amazon Linux 2</strong>).<br />
  I followed the documentation and created a file <code>.platform/nginx/conf.d/proxy.conf</code> with this content:</p>
  <pre><code>worker_rlimit_nofile 65536;
  events {
    worker_connections  32768;
  }
  </code></pre>
  <p>When deploying I get the error:
  <code>[emerg] &quot;worker_rlimit_nofile&quot; directive is not allowed here in /var/proxy/staging/nginx/conf.d/proxy.conf</code></p>
  <p>When commenting this line I still get:
  <code>[emerg] &quot;events&quot; directive is not allowed here in /var/proxy/staging/nginx/conf.d/proxy.conf:3</code></p>