From 6e72046580608ce72d063077b2ba5435ada0f54d Mon Sep 17 00:00:00 2001 From: Evangelos Foutras <evangelos@foutrelis.com> Date: Fri, 13 May 2022 20:08:44 +0300 Subject: [PATCH] debuginfod: let nginx compress octet-stream responses Using the fastest gzip compression level to avoid burning too much CPU. --- roles/debuginfod/templates/nginx.d.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/debuginfod/templates/nginx.d.conf.j2 b/roles/debuginfod/templates/nginx.d.conf.j2 index 456a9aba5..5922ddd2e 100644 --- a/roles/debuginfod/templates/nginx.d.conf.j2 +++ b/roles/debuginfod/templates/nginx.d.conf.j2 @@ -42,5 +42,8 @@ server { location @debuginfod { proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://127.0.0.1:8002; + + gzip_comp_level 1; + gzip_types application/octet-stream; } } -- GitLab