From eb72c1619dba05196939c356d0bf86611548a754 Mon Sep 17 00:00:00 2001 From: Slava Kyrachevsky Date: Fri, 20 Jan 2017 10:31:08 +0200 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=20nginx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- support/nginx.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/support/nginx.conf b/support/nginx.conf index f700daff..a3e287f3 100644 --- a/support/nginx.conf +++ b/support/nginx.conf @@ -18,6 +18,16 @@ server { add_header Strict-Transport-Security "max-age=31536000;"; add_header Content-Security-Policy-Report-Only "default-src https:; script-src https: 'unsafe-eval' 'unsafe-inline'; style-src https: 'unsafe-inline'; img-src https: data:; font-src https: data:"; + gzip on; + gzip_disable "msie6"; + gzip_vary on; + gzip_proxied any; + gzip_comp_level 6; + gzip_buffers 16 8k; + gzip_http_version 1.1; + gzip_static on; + gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/xml+rss text/javascript; + client_header_timeout 360s; location / { include uwsgi_params;