From 964f2d69c75394fab64badf7c77d64d0971c9849 Mon Sep 17 00:00:00 2001 From: Fabien Bourgeois Date: Sun, 4 Dec 2016 19:35:49 +0100 Subject: [PATCH] [IMP]Nginx GZIP compression for odoo --- odoo/nginx/odoo.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/odoo/nginx/odoo.conf b/odoo/nginx/odoo.conf index 1d8f8eb..9c068ea 100644 --- a/odoo/nginx/odoo.conf +++ b/odoo/nginx/odoo.conf @@ -15,7 +15,11 @@ server { server { listen 443 ssl; server_name ${ODOO_SERVER_NAMES}; - client_max_body_size 200M; + 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_vary on; location / { proxy_pass http://odooserver; proxy_http_version 1.1;