Sfoglia il codice sorgente

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.
master
Russell Graves 5 anni fa
parent
commit
b10aa422ca
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4
    0
      doc/debian/jitsi-meet/jitsi-meet.example

+ 4
- 0
doc/debian/jitsi-meet/jitsi-meet.example Vedi File

@@ -39,6 +39,10 @@ server {
39 39
     index index.html index.htm;
40 40
     error_page 404 /static/404.html;
41 41
 
42
+    gzip on;
43
+    gzip_types text/plain text/css application/javascript application/json;
44
+    gzip_vary on;
45
+
42 46
     location = /config.js {
43 47
         alias /etc/jitsi/meet/jitsi-meet.example.com-config.js;
44 48
     }

Loading…
Annulla
Salva