From d6dff07d28a2d5a6370876b5ea68ce26a8f93195 Mon Sep 17 00:00:00 2001 From: Joost Wooning Date: Tue, 5 Oct 2021 11:58:16 +0200 Subject: [PATCH] nginx gzip --- nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx.conf b/nginx.conf index ab31c30..ff32510 100644 --- a/nginx.conf +++ b/nginx.conf @@ -3,6 +3,11 @@ server { listen [::]:80; server_name localhost; + gzip on; + gzip_types text/html text/plain text/css text/xml text/javascript application/javascript application/x-javascript application/json; + gzip_min_length 1024; + gzip_vary on; + root /usr/share/nginx/html; location / { try_files $uri $uri/ /index.html;