From: Dan Mick Date: Tue, 25 Aug 2020 20:31:43 +0000 (+0000) Subject: teuthology nginx: add gzip_ variables to allow compressed responses X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7008bc96184302a9cae5d6ca17d2ef5f75189415;p=ceph-cm-ansible.git teuthology nginx: add gzip_ variables to allow compressed responses in particular, gzip_static on allows the server to return file.gz (if compression is allowable) for files that are requested as "file". This handles the teuthology.log.gz files that are still referred to as teuthology.log from pulpito pages. Signed-off-by: Dan Mick --- diff --git a/roles/teuthology/templates/nginx.conf b/roles/teuthology/templates/nginx.conf index 454acbaf..a8813aef 100644 --- a/roles/teuthology/templates/nginx.conf +++ b/roles/teuthology/templates/nginx.conf @@ -1,5 +1,11 @@ # {{ ansible_managed }} server { + gzip on; + gzip_types *; + gzip_comp_level 9; + gzip_proxied any; + gzip_vary on; + gzip_static on; allow all; autoindex on; server_name {{ inventory_hostname }};