Sfoglia il codice sorgente

Update Cinny nginx.conf.j2 to include service worker rewrite

Cinny has added a service worker to support authenticated media and requires /sw,js to resolve to the serviceworker js file
pull/3573/head
James Reilly 1 anno fa
committed by GitHub
parent
commit
195e0a4481
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: B5690EEEBB952194
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      roles/custom/matrix-client-cinny/templates/nginx.conf.j2

+ 1
- 0
roles/custom/matrix-client-cinny/templates/nginx.conf.j2 Vedi File

@@ -59,6 +59,7 @@ http {
rewrite ^/manifest.json$ /manifest.json break;

rewrite ^.*/olm.wasm$ /olm.wasm break;
rewrite ^/sw.js$ /sw.js break;
rewrite ^/pdf.worker.min.js$ /pdf.worker.min.js break;

rewrite ^/public/(.*)$ /public/$1 break;


Caricamento…
Annulla
Salva