瀏覽代碼

web: fix WASM MIME type

Jakub Onderka 5 年之前
父節點
當前提交
125775a
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      web/rootfs/defaults/nginx.conf

+ 5 - 1
web/rootfs/defaults/nginx.conf

@@ -26,7 +26,11 @@ http {
 
 	client_max_body_size 0;
 
-	include /etc/nginx/mime.types;
+ 	include /etc/nginx/mime.types;
+	types {
+		# add support for wasm MIME type, that is required by specification and it is not part of default mime.types file
+		application/wasm wasm;
+	}
 	default_type application/octet-stream;
 
 	##