From 596d5429ba9c84a944a356a3eca3a8d77158b536 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 28 Nov 2024 16:32:07 +0100 Subject: [PATCH] tsuki/nginx: general optimizations --- hosts/tsuki/services/nginx/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/tsuki/services/nginx/default.nix b/hosts/tsuki/services/nginx/default.nix index d6c70df..268899f 100644 --- a/hosts/tsuki/services/nginx/default.nix +++ b/hosts/tsuki/services/nginx/default.nix @@ -36,6 +36,17 @@ recommendedTlsSettings = true; recommendedZstdSettings = true; + appendConfig = '' + pcre_jit on; + worker_processes auto; + worker_rlimit_nofile 100000; + ''; + eventsConfig = '' + worker_connections 2048; + use epoll; + multi_accept on; + ''; + upstreams = let srv = config.services; sa = config.local.socketActivation;