From c768203bedb455a4a8986f2763657f88d495bf96 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 14 Apr 2024 17:39:56 +0200 Subject: [PATCH] nginx: set worker_processes to number of CPU cores and set worker_connections to 1024 https://nginx.org/en/docs/ngx_core_module.html#worker_processes https://nginx.org/en/docs/ngx_core_module.html#worker_connections --- hosts/nachtigall/apps/nginx.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/nachtigall/apps/nginx.nix b/hosts/nachtigall/apps/nginx.nix index 748fbe9..01e933c 100644 --- a/hosts/nachtigall/apps/nginx.nix +++ b/hosts/nachtigall/apps/nginx.nix @@ -24,6 +24,13 @@ in # https://my.f5.com/manage/s/article/K51798430 proxy_headers_hash_bucket_size 128; ''; + appendConfig = '' + # Number of CPU cores + worker_processes 8; + ''; + eventsConfig = '' + worker_connections 1024; + ''; }; security.acme = { -- 2.44.2