From cadf1c3f968771f3910a782090449da0513e606b Mon Sep 17 00:00:00 2001 From: off Date: Thu, 27 Jan 2022 11:17:52 +0100 Subject: [PATCH] enable gzip_static and gunzip for OCR json files - #6273 --- conf/nginx/sites-available/off | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/nginx/sites-available/off b/conf/nginx/sites-available/off index 76a2241d4ba43..752891166ddc8 100644 --- a/conf/nginx/sites-available/off +++ b/conf/nginx/sites-available/off @@ -187,7 +187,8 @@ server { location ~ ^/(.well-known|images|css|js|rss|files|resources|foundation|bower_components)/ { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. - try_files $uri $uri/ =404; + gzip_static always; + gunzip on; } location = /robots.txt {