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.conf 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