mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-09 11:41:30 -07:00
[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:
parent
0022e9d0e0
commit
c8704f4517
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue