From 585fdb76f85ff334da1375f427d904a67a1fe629 Mon Sep 17 00:00:00 2001 From: garionion Date: Mon, 5 Apr 2021 23:36:05 +0200 Subject: [PATCH] add compression to nginx Signed-off-by: garionion --- nginx/default.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nginx/default.conf b/nginx/default.conf index 29f3fb8..83d268f 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -43,4 +43,10 @@ server { #location ~ /\.ht { # deny all; #} + 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]\."; }