From 52cf652608482f503b9a26a21efc37d3ae223c57 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 28 May 2021 15:46:20 +0200 Subject: [PATCH] configures nginx for serving .gz files --- Docker/nginx/default.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Docker/nginx/default.conf b/Docker/nginx/default.conf index da28a18..7dd547d 100644 --- a/Docker/nginx/default.conf +++ b/Docker/nginx/default.conf @@ -35,4 +35,15 @@ server { location ~ /\.ht { deny all; } + + gzip on; + gzip_types application/json; + + gzip_http_version 1.0; + gzip_static on; + + location ~* \.(js|css|ttf|json)$ { + gzip_static on; + } + }