From 2721948884c63649e12f65691c3d9923400ebf60 Mon Sep 17 00:00:00 2001 From: schneif2 <48552719+schneif2@users.noreply.github.com> Date: Tue, 16 Jun 2020 09:35:08 +0200 Subject: [PATCH] Update nginx.conf.j2 Using variables for worker_processes and worker_connections --- roles/matrix-riot-web/templates/nginx.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/matrix-riot-web/templates/nginx.conf.j2 b/roles/matrix-riot-web/templates/nginx.conf.j2 index fba16bbdc..0eb4a87bd 100644 --- a/roles/matrix-riot-web/templates/nginx.conf.j2 +++ b/roles/matrix-riot-web/templates/nginx.conf.j2 @@ -10,14 +10,14 @@ # - various temp paths are changed to `/tmp`, so that a non-root user can write to them # - the `user` directive was removed, as we don't want nginx to switch users -worker_processes 1; +worker_processes {{ matrix_riot_web_worker_processes }}; error_log /var/log/nginx/error.log warn; pid /tmp/nginx.pid; events { - worker_connections 1024; + worker_connections {{ matrix_riot_web_worker_connections }}; }