From 6f825cf5bd03d438339421242ee2e8053446ce16 Mon Sep 17 00:00:00 2001 From: testaccount90009 <122134756+testaccount90009@users.noreply.github.com> Date: Tue, 7 May 2024 09:46:47 -0700 Subject: [PATCH] Optimize nginx configs for performance by default worker_processes defaulting to 1 leads to sub-optimal performance. Changing this to 'auto' allows for more performance out-of-the-box at no detriment to anything else. This will help newer users from experiencing performance limitations due to the 1 worker_process, when most modern systems have multiple cores to take advantage of. --- nginx/nginx.conf | 2 +- nginx/nginx_TLS.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index aaa62e7e43..711954d591 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,4 +1,4 @@ -worker_processes 1; +worker_processes auto; error_log /var/log/nginx/error.log warn; pid /var/run/defectdojo/nginx.pid; events { diff --git a/nginx/nginx_TLS.conf b/nginx/nginx_TLS.conf index 59edae6e9c..2b2bd18b7a 100644 --- a/nginx/nginx_TLS.conf +++ b/nginx/nginx_TLS.conf @@ -1,4 +1,4 @@ -worker_processes 1; +worker_processes auto; error_log /var/log/nginx/error.log warn; pid /var/run/defectdojo/nginx.pid; events {