From 4991e63536717e8cb0534ab696d4100ed7f5a146 Mon Sep 17 00:00:00 2001 From: Zac Blazic Date: Tue, 14 Feb 2023 12:48:07 +0200 Subject: [PATCH 1/2] Enable gzip compression Based on h5bp's compression configuration: https://github.com/h5bp/server-configs-nginx/blob/e4bdb97006ecfeb7a2221b0d228927f11a9ae08e/h5bp/web_performance/compression.conf --- config/http.conf | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/config/http.conf b/config/http.conf index 332f4c7..9ba28b0 100644 --- a/config/http.conf +++ b/config/http.conf @@ -78,6 +78,46 @@ http { proxy_set_header X-Request-ID $proxy_x_request_id; proxy_set_header X-Forwarded-Host $proxy_x_forwarded_host; + gzip on; + gzip_comp_level 5; + gzip_min_length 256; + gzip_proxied any; + gzip_vary on; + gzip_types + application/atom+xml + application/geo+json + application/javascript + application/x-javascript + application/json + application/ld+json + application/manifest+json + application/rdf+xml + application/rss+xml + application/vnd.ms-fontobject + application/wasm + application/x-web-app-manifest+json + application/xhtml+xml + application/xml + font/eot + font/otf + font/ttf + image/bmp + image/svg+xml + image/vnd.microsoft.icon + image/x-icon + text/cache-manifest + text/calendar + text/css + text/javascript + text/markdown + text/plain + text/xml + text/vcard + text/vnd.rim.location.xloc + text/vtt + text/x-component + text/x-cross-domain-policy; + include /etc/nginx/app.conf; server { From f17e1be5b29b5223cd66374e989fb2eed5e03601 Mon Sep 17 00:00:00 2001 From: Zac Blazic Date: Tue, 14 Feb 2023 12:49:03 +0200 Subject: [PATCH 2/2] Bump version and update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84a81e1..2db3c75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.23.3-1 + +* Enable gzip compression globally. + ## 1.23.3 * Upgrade nginx to 1.23.3.