From 9222904ab2d4e20ac947756fa3ba874bf30966e3 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 21 Apr 2022 14:39:14 +0200 Subject: [PATCH] CMS-Nextcloud: Update nginx config for beter Talk compatibility --- CMS/nextcloud/Nginx-unconfigured | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/CMS/nextcloud/Nginx-unconfigured b/CMS/nextcloud/Nginx-unconfigured index d9cca6d..515f0bf 100644 --- a/CMS/nextcloud/Nginx-unconfigured +++ b/CMS/nextcloud/Nginx-unconfigured @@ -20,7 +20,7 @@ gzip_vary on; gzip_comp_level 4; gzip_min_length 256; gzip_proxied expired no-cache no-store private no_last_modified no_etag auth; -gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy; +gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy; location = /robots.txt { allow all; @@ -67,7 +67,7 @@ location ~ ^\/(?:updater|oc[ms]-provider)(?:$|\/) { index index.php; } -location ~ \.(?:css|js|woff2?|svg|gif|map)$ { +location ~ \.(?:css|js|svg|gif|png|jpg|ico|wasm|tflite|map)$ { try_files $uri /index.php$request_uri; add_header Cache-Control "public, max-age=15778463"; add_header Referrer-Policy "no-referrer" always; @@ -75,6 +75,15 @@ location ~ \.(?:css|js|woff2?|svg|gif|map)$ { add_header X-Permitted-Cross-Domain-Policies "none" always; add_header X-Robots-Tag "none" always; access_log off; + location ~ \.wasm$ { + default_type application/wasm; + } +} + +location ~ \.woff2?$ { + try_files $uri /index.php$request_uri; + expires 7d; + access_log off; } location ~ \.(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$ {