Explorar o código

web: fix WASM MIME type

Jakub Onderka %!s(int64=5) %!d(string=hai) anos
pai
achega
125775a737
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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;
 
 	##