From 2b6e608f1ed66806835a4f9690f60036a5fff0a4 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Thu, 14 Mar 2019 08:06:05 +0100 Subject: [PATCH] [IMP]Nginx GZIP compression on more types, and buffering --- odoo/nginx/odoo.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/odoo/nginx/odoo.conf b/odoo/nginx/odoo.conf index 44a5ab7..65da39a 100644 --- a/odoo/nginx/odoo.conf +++ b/odoo/nginx/odoo.conf @@ -17,8 +17,9 @@ server { server_name ${SERVER_NAMES}; client_max_body_size 200M; gzip on; - gzip_min_length 256; - gzip_types text/plain application/x-javascript application/json text/xml text/css; + gzip_min_length 512; + gzip_buffers 4 32k; + gzip_types text/plain text/xml text/css text/less application/x-javascript application/xml application/json application/javascript; gzip_vary on; keepalive_timeout 120s; proxy_read_timeout 720s;