diff --git a/confs/global/nginx.conf b/confs/global/nginx.conf index 9e22c2a..eadfeac 100644 --- a/confs/global/nginx.conf +++ b/confs/global/nginx.conf @@ -12,8 +12,8 @@ load_module /usr/lib/nginx/modules/ngx_http_brotli_static_module.so; # PID file pid /tmp/nginx.pid; -# worker number = CPU core(s) -worker_processes auto; +# worker number (default = auto) +worker_processes {{ WORKER_PROCESSES }}; # faster regexp pcre_jit on; diff --git a/settings.json b/settings.json index f7b35e2..ccfc4e9 100644 --- a/settings.json +++ b/settings.json @@ -1313,6 +1313,15 @@ "label": "worker_connections directive", "regex": "^[0-9]+$", "type": "text" + }, + { + "context": "global", + "default": "auto", + "env": "WORKER_PROCESSES", + "id": "worker-processes", + "label": "worker_processes directive", + "regex": "^(auto|[0-9]+)$", + "type": "text" } ] },