From c8704f4517179b2ea684ad1dc6b107a2ec4094ca Mon Sep 17 00:00:00 2001 From: Norm Date: Thu, 14 Mar 2024 00:13:36 -0400 Subject: [PATCH] [docs] Enable gzip compression in example nginx config This should help reduce the bandwith usage of Iceshrimp when using Nginx. The `gzip_types` setting is copied from Akkoma's nginx config: https://akkoma.dev/AkkomaGang/akkoma/src/commit/889b57df82b9b18e720b9254afd375bfa1c5c0ab/installation/nginx/akkoma.nginx#L66 --- docs/examples/iceshrimp.nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/examples/iceshrimp.nginx.conf b/docs/examples/iceshrimp.nginx.conf index ff7b0b09d..edf15fa47 100644 --- a/docs/examples/iceshrimp.nginx.conf +++ b/docs/examples/iceshrimp.nginx.conf @@ -47,6 +47,12 @@ server { # Change to your upload limit client_max_body_size 80m; + # Gzip compression + gzip on; + gzip_proxied any; + gzip_comp_level 6; + gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/activity+json application/atom+xml; + # Proxy to Node location / { proxy_pass http://127.0.0.1:3000;