mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-24 17:59:05 +01: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
@ -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 New Issue
Block a user