From a278443850dc7c930b2615b7c5697a77a3c7c467 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 4 Sep 2021 22:41:30 +0100 Subject: [PATCH] Use `auto` on nginx configs Let nginx work it out, and default to 1 per core --- ansible/roles/gateway/files/nginx.conf | 2 +- ansible/roles/ingress/files/nginx.conf | 2 +- ansible/roles/qbittorrent/files/nginx.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/roles/gateway/files/nginx.conf b/ansible/roles/gateway/files/nginx.conf index e818c73..4cbd321 100644 --- a/ansible/roles/gateway/files/nginx.conf +++ b/ansible/roles/gateway/files/nginx.conf @@ -1,4 +1,4 @@ -worker_processes {{ ansible_processor_nproc }}; +worker_processes auto; events { worker_connections 1024; diff --git a/ansible/roles/ingress/files/nginx.conf b/ansible/roles/ingress/files/nginx.conf index ebe428f..dc5296b 100644 --- a/ansible/roles/ingress/files/nginx.conf +++ b/ansible/roles/ingress/files/nginx.conf @@ -1,4 +1,4 @@ -worker_processes 1; +worker_processes auto; events { worker_connections 1024; diff --git a/ansible/roles/qbittorrent/files/nginx.conf b/ansible/roles/qbittorrent/files/nginx.conf index 72ee501..eac023f 100644 --- a/ansible/roles/qbittorrent/files/nginx.conf +++ b/ansible/roles/qbittorrent/files/nginx.conf @@ -1,4 +1,4 @@ -worker_processes 2; +worker_processes auto; events { worker_connections 1024;