[IMP]Nginx GZIP compression for odoo

This commit is contained in:
Fabien Bourgeois 2016-12-04 19:35:49 +01:00
parent d0f06e0252
commit 964f2d69c7

View File

@ -16,6 +16,10 @@ server {
listen 443 ssl; listen 443 ssl;
server_name ${ODOO_SERVER_NAMES}; 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 / { location / {
proxy_pass http://odooserver; proxy_pass http://odooserver;
proxy_http_version 1.1; proxy_http_version 1.1;