From a5e6513be3cce3fd9b2bb84f6a3e35672df8710a Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 14 Nov 2017 12:44:56 +0200 Subject: [PATCH] roles/dspace: Update gzip_types formatting From the H5BP project, see: https://github.com/h5bp/server-configs-nginx/blob/master/nginx.conf --- roles/nginx/templates/nginx.conf.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/nginx/templates/nginx.conf.j2 b/roles/nginx/templates/nginx.conf.j2 index 945d5bf..bd97da3 100644 --- a/roles/nginx/templates/nginx.conf.j2 +++ b/roles/nginx/templates/nginx.conf.j2 @@ -69,7 +69,10 @@ http { gzip_min_length 256; gzip_http_version 1.1; + # Compress all output labeled with one of the following MIME-types. + # text/html is always compressed by gzip module. + # Default: text/html gzip_types application/atom+xml application/javascript @@ -95,7 +98,6 @@ http { text/vtt text/x-component text/x-cross-domain-policy; - # text/html is always compressed by gzip module client_max_body_size 12m;