From 804299bedae395f81ebbe6b93d1f6aea21f5b12a Mon Sep 17 00:00:00 2001 From: Russell Graves Date: Tue, 7 Apr 2020 08:42:27 -0600 Subject: [PATCH] Add gzip to nginx server config. (#5700) * Add gzip and expiration to nginx server config. * Add application/json to gzip_types line to cover translations. * Add gzip_vary for content caches, remove expires section. Per discussion, expiration seems likely to cause more confusion than it solves. Add gzip_vary to prevent content caches from caching un-compressed versions of the content and confusing browsers. --- doc/debian/jitsi-meet/jitsi-meet.example | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/debian/jitsi-meet/jitsi-meet.example b/doc/debian/jitsi-meet/jitsi-meet.example index 8f89a19f3a67..b6fde05180a8 100644 --- a/doc/debian/jitsi-meet/jitsi-meet.example +++ b/doc/debian/jitsi-meet/jitsi-meet.example @@ -39,6 +39,10 @@ server { index index.html index.htm; error_page 404 /static/404.html; + gzip on; + gzip_types text/plain text/css application/javascript application/json; + gzip_vary on; + location = /config.js { alias /etc/jitsi/meet/jitsi-meet.example.com-config.js; }