Skip to content

Commit

Permalink
Merge pull request #123 from whlsxl/master
Browse files Browse the repository at this point in the history
Update nginx.conf to support wasm & tflite file for `talk`
  • Loading branch information
crazy-max committed Jun 8, 2023
2 parents e75e2b3 + a561671 commit cd22436
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rootfs/tpls/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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@";
Expand All @@ -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)$ {
Expand Down

0 comments on commit cd22436

Please sign in to comment.