From 280802d38a037763a5eb269ff2ef868ed6ab0e08 Mon Sep 17 00:00:00 2001 From: Hubert Van De Walle Date: Thu, 30 Apr 2020 22:52:22 +0200 Subject: [PATCH] Add gzip compression --- nginx/server.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nginx/server.conf b/nginx/server.conf index 4914024..cacdd7e 100644 --- a/nginx/server.conf +++ b/nginx/server.conf @@ -21,6 +21,13 @@ server { include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; + gzip on; + gzip_vary on; + gzip_min_length 10240; + gzip_proxied expired no-cache no-store private auth; + gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml; + gzip_disable "MSIE [1-6]\."; + location / { root /usr/share/nginx/html; index index.html index.htm;