diff --git a/README.md b/README.md index 1176042..c6045f3 100644 --- a/README.md +++ b/README.md @@ -68,3 +68,4 @@ Online nginx configuration generator. * [h5bp/server-configs-nginx](https://github.com/h5bp/server-configs-nginx) * [Diffie-Hellman DSA-like parameters](https://security.stackexchange.com/questions/95178/diffie-hellman-parameters-still-calculating-after-24-hours/95184#95184) * [hstspreload.org](https://hstspreload.org) +* [Optimal value for nginx worker_connections](https://serverfault.com/questions/787919/optimal-value-for-nginx-worker-connections) diff --git a/public/templates/conf/nginx.conf.html b/public/templates/conf/nginx.conf.html index 290085b..fbd05ee 100644 --- a/public/templates/conf/nginx.conf.html +++ b/public/templates/conf/nginx.conf.html @@ -1,11 +1,11 @@ user {{ data.userĀ }}; pid {{ data.pid}}; worker_processes {{ data.worker_processes }}; -worker_rlimit_nofile 409600; +worker_rlimit_nofile 65535; events { - worker_connections 4096; multi_accept on; + worker_connections 65535; } http {