Skip to content

Commit

Permalink
Add gzip to nginx server config. (jitsi#5700)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Syonyk authored and root committed Apr 9, 2020
1 parent cc415a9 commit 804299b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/debian/jitsi-meet/jitsi-meet.example
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 804299b

Please sign in to comment.