Increasing worker_connections of nginx on Beanstalk nodejs environment

I am trying to increase the number of possible worker_connections of my nginx on my Beanstalk nodejs server (Amazon Linux 2).
I followed the documentation and created a file .platform/nginx/conf.d/proxy.config with this content:

worker_rlimit_nofile 65536;
events {
  worker_connections  32768;
}

When deploying I get the error: [emerg] "worker_rlimit_nofile" directive is not allowed here in /var/proxy/staging/nginx/conf.d/proxy.conf

When commenting this line I still get: emerg] "events" directive is not allowed here in /var/proxy/staging/nginx/conf.d/proxy.conf:3



Read more here: https://stackoverflow.com/questions/66343544/increasing-worker-connections-of-nginx-on-beanstalk-nodejs-environment

Content Attribution

This content was originally published by httpete at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: