]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
teuthology nginx: add gzip_ variables to allow compressed responses 583/head
authorDan Mick <dmick@redhat.com>
Tue, 25 Aug 2020 20:31:43 +0000 (20:31 +0000)
committerDan Mick <dmick@redhat.com>
Tue, 25 Aug 2020 20:31:43 +0000 (20:31 +0000)
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 <dmick@redhat.com>
roles/teuthology/templates/nginx.conf

index 454acbaf81159be27c08ec44a2928ed6fa426901..a8813aef17866693e2a3c303e85c1e889fb6bdee 100644 (file)
@@ -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 }};