Browse Source

added content types

Dominik 1 year ago
parent
commit
4b367b76cf
1 changed files with 13 additions and 1 deletions
  1. 13 1
      data/conf.d/60-modules.yml

+ 13 - 1
data/conf.d/60-modules.yml

@@ -34,10 +34,22 @@ modules:
 #  mod_stun_disco: {} #--> see 50-stun-turn.yml
 #  mod_http_api: {}
   mod_http_fileserver:
-    default_content_type: "text/html"
+
     docroot: "/var/www/"
     directory_indices:
       - "index.html"
+    default_content_type: "text/html"      
+    content_types:
+      .css: text/css
+      .gif: image/gif
+      .html: text/html
+      .jpeg: image/jpeg
+      .jpg: image/jpeg
+      .png: image/png
+      .svg: image/svg+xml
+      .txt: text/plain
+      .xml: application/xml
+
   ##  docroot: "/var/www"
   ##  accesslog: "/home/ejabberd/logs/access.log"
   #mod_http_api: {}