From 64bb9cd2612cd6bab8ec31b26a9fa9235c5dc139 Mon Sep 17 00:00:00 2001 From: schneif2 <48552719+schneif2@users.noreply.github.com> Date: Tue, 16 Jun 2020 09:34:04 +0200 Subject: [PATCH] Update nginx.conf.j2 Using variables for worker_processes and worker_connections --- roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2 b/roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2 index 51aa8a006..8cb3da78c 100644 --- a/roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2 +++ b/roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2 @@ -8,14 +8,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_nginx_proxy_proxy_synapse_worker_processes }}; error_log /var/log/nginx/error.log warn; pid /tmp/nginx.pid; events { - worker_connections 1024; + worker_connections {{ matrix_nginx_proxy_proxy_synapse_worker_connections }}; }