From 209edc9eb43b85c50d0dd350dd5514487f175464 Mon Sep 17 00:00:00 2001 From: Leonard Techel Date: Sat, 19 Feb 2022 16:24:35 +0100 Subject: [PATCH] fix(docker): Enable gzip compression --- docker/etc/nginx/sites-enabled/default | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/etc/nginx/sites-enabled/default b/docker/etc/nginx/sites-enabled/default index fd0442f..e4994d8 100644 --- a/docker/etc/nginx/sites-enabled/default +++ b/docker/etc/nginx/sites-enabled/default @@ -10,6 +10,12 @@ server { add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy "no-referrer" always; + gzip on; + gzip_vary on; + gzip_proxied any; + gzip_comp_level 6; + gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml; + location / { try_files $uri $uri/ /index.html; }