From 930cf870848f1e3c85b4c5c3914cc174934f7074 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 16 Dec 2023 17:58:15 +0000 Subject: [PATCH] gzip as much as makes sense --- ansible/roles/nginx/files/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/nginx/files/nginx.conf b/ansible/roles/nginx/files/nginx.conf index b1ecd9f..25179d8 100644 --- a/ansible/roles/nginx/files/nginx.conf +++ b/ansible/roles/nginx/files/nginx.conf @@ -25,8 +25,14 @@ http { sendfile on; tcp_nopush on; + + # Gzip basically everything if we can gzip on; gzip_vary on; + gzip_types *; + gzip_proxied any; + gzip_comp_level 3; + gzip_min_length 1024; keepalive_timeout 65;