From 990a0ab127096105c6d5e5f57768e316f1bb3da6 Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Wed, 20 Sep 2017 17:25:38 +0300 Subject: [PATCH] Set NGINX_WORKER_PROCESSES=1 by default --- run-document-server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-document-server.sh b/run-document-server.sh index 5763d70..949f4fc 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -25,7 +25,7 @@ NGINX_ONLYOFFICE_INCLUDES_PATH="/etc/nginx/includes"; NGINX_ONLYOFFICE_EXAMPLE_PATH=${NGINX_ONLYOFFICE_INCLUDES_PATH}/onlyoffice-documentserver-example.conf NGINX_CONFIG_PATH="/etc/nginx/nginx.conf" -NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:-$(grep processor /proc/cpuinfo | wc -l)} +NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:-1} NGINX_WORKER_CONNECTIONS=${NGINX_WORKER_CONNECTIONS:-$(ulimit -n)} JWT_ENABLED=${JWT_ENABLED:-false}