[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:
889b57df82/installation/nginx/akkoma.nginx (L66)
This commit is contained in:
Norm 2024-03-14 00:13:36 -04:00
parent 0022e9d0e0
commit c8704f4517

View File

@ -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;