Просмотр исходного кода

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.
j8
Russell Graves 5 лет назад
Родитель
Сommit
b10aa422ca
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 4 добавлений и 0 удалений
  1. 4
    0
      doc/debian/jitsi-meet/jitsi-meet.example

+ 4
- 0
doc/debian/jitsi-meet/jitsi-meet.example Просмотреть файл

@@ -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
     }

Загрузка…
Отмена
Сохранить