From 7008bc96184302a9cae5d6ca17d2ef5f75189415 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Tue, 25 Aug 2020 20:31:43 +0000 Subject: [PATCH] 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 --- roles/teuthology/templates/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) 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 }}; -- 2.47.3