conf - add WORKER_PROCESSES

This commit is contained in:
bunkerity 2021-07-21 22:18:02 +02:00
parent 26dc796155
commit 876fcd1814
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
2 changed files with 11 additions and 2 deletions

View File

@ -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;

View File

@ -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"
}
]
},