From 2b4aa79ed0d16eeb2d6a788cb9e357cace76d3d6 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Wed, 21 Dec 2022 20:02:56 +0100 Subject: [PATCH] fix: worker connections --- templates/nginx.conf.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 447bf6f..1ad3c77 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -2,9 +2,11 @@ user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; +worker_rlimit_nofile 30000; events { - worker_connections 768; + worker_connections {{ worker_connections }}; + multi_accept on; } http { @@ -49,7 +51,7 @@ http { # disable logging access_log off; - include locations/acme-challenge.conf; + include acme-challenge.conf; location /{ return 302 https://$host$request_uri; }