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 file
|
||||||
pid /tmp/nginx.pid;
|
pid /tmp/nginx.pid;
|
||||||
|
|
||||||
# worker number = CPU core(s)
|
# worker number (default = auto)
|
||||||
worker_processes auto;
|
worker_processes {{ WORKER_PROCESSES }};
|
||||||
|
|
||||||
# faster regexp
|
# faster regexp
|
||||||
pcre_jit on;
|
pcre_jit on;
|
||||||
|
|||||||
@ -1313,6 +1313,15 @@
|
|||||||
"label": "worker_connections directive",
|
"label": "worker_connections directive",
|
||||||
"regex": "^[0-9]+$",
|
"regex": "^[0-9]+$",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "global",
|
||||||
|
"default": "auto",
|
||||||
|
"env": "WORKER_PROCESSES",
|
||||||
|
"id": "worker-processes",
|
||||||
|
"label": "worker_processes directive",
|
||||||
|
"regex": "^(auto|[0-9]+)$",
|
||||||
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user