diff --git a/rootfs/tpls/etc/nginx/nginx.conf b/rootfs/tpls/etc/nginx/nginx.conf index 0f92eff..2a093e5 100644 --- a/rootfs/tpls/etc/nginx/nginx.conf +++ b/rootfs/tpls/etc/nginx/nginx.conf @@ -160,7 +160,7 @@ http { index index.php; } - location ~ \.(?:css|js|woff2?|svg|gif|map)$ { + location ~ \.(?:css|js|woff2?|svg|gif|wasm|tflite|map)$ { try_files $uri /index.php$request_uri; add_header Cache-Control "public, max-age=15778463"; add_header Strict-Transport-Security "@HSTS_HEADER@"; @@ -172,6 +172,10 @@ http { add_header X-Robots-Tag "none" always; add_header X-XSS-Protection "1; mode=block" always; access_log off; + + location ~ \.wasm$ { + default_type application/wasm; + } } location ~ \.(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$ {