From 4306d08ba45a56bdfdd8593a016136c0f9611bf1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 27 Nov 2014 20:41:23 +0000 Subject: [PATCH] Reduce the maximum web server connections --- install-freedombone.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 853e4b05..59a0cbc2 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -3004,6 +3004,8 @@ function install_web_server { fi sed -i "s/worker_processes 4;/worker_processes $CPU_CORES;/g" /etc/nginx/nginx.conf + sed -i 's/worker_connections 768;/worker_connections 50;/g' /etc/nginx/nginx.conf + sed -i 's/# server_tokens off;/server_tokens off;/g' /etc/nginx/nginx.conf # install a script to easily enable and disable nginx virtual hosts if [ ! -d $INSTALL_DIR ]; then