From 5af8d4ed2d1e26a63c7896e7b05d645667e21310 Mon Sep 17 00:00:00 2001 From: Marcel Partap Date: Tue, 14 Apr 2020 17:01:59 +0200 Subject: [PATCH] nginx configuration: enable caching / precompiled regular expressions --- roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2 b/roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2 index 9ee72c879..3db5a40c8 100644 --- a/roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2 +++ b/roles/matrix-nginx-proxy/templates/nginx/nginx.conf.j2 @@ -18,6 +18,8 @@ events { worker_connections 1024; } +# "PCRE JIT can speed up processing of regular expressions significantly." +pcre_jit on; http { proxy_temp_path /tmp/proxy_temp;