automatically set nginx-worker based on CPU-count

This commit is contained in:
Thomas Sänger
2017-11-12 23:21:00 +01:00
parent 118f93d049
commit ad7c5e48c5

View File

@@ -1,6 +1,6 @@
# Basic configuration
user nginx;
worker_processes 4;
worker_processes auto;
error_log /dev/stderr info;
pid /var/run/nginx.pid;
load_module "modules/ngx_mail_module.so";