Explorar o código

added mime types

Haseeb Qureshie hai 7 meses
pai
achega
2bc8b7ea91
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      nginx.conf

+ 10 - 1
nginx.conf

@@ -12,7 +12,16 @@ http {
     access_log  nginx_access.log;
     error_log   nginx_error.log info;
 
-    include       /etc/nginx/mime.types;
+    types {
+        text/html                             html htm shtml;
+        text/css                              css;
+        application/javascript                js;
+        application/wasm                      wasm;
+        image/png                             png;
+        image/jpeg                            jpg jpeg;
+        image/svg+xml                         svg;
+    }
+
     default_type  application/octet-stream;
 
     sendfile        on;