conf - add WORKER_PROCESSES
This commit is contained in:
parent
26dc796155
commit
876fcd1814
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue