www-servers/lighttpd: Update mime types, #399401 Update with commonly used file types without the bloat from generation using entire /etc/mime.types source. Signed-Off-By: Alan Swanson --- a/files/conf/mime-types.conf 2021-01-18 09:39:19.000000000 +0000 +++ b/files/conf/mime-types.conf 2021-02-12 11:06:10.148978334 +0000 @@ -5,37 +5,89 @@ # {{{ mime types mimetype.assign = ( - ".svg" => "image/svg+xml", - ".svgz" => "image/svg+xml", ".pdf" => "application/pdf", - ".sig" => "application/pgp-signature", ".spl" => "application/futuresplash", + ".doc" => "application/msword", ".class" => "application/octet-stream", + ".sig" => "application/pgp-signature", ".ps" => "application/postscript", + ".xls" => "application/vnd.ms-excel", + ".ppt" => "application/vnd.ms-powerpoint", + ".cbz" => "application/vnd.comicbook+zip", + ".cbr" => "application/vnd.comicbook-rar", + ".odt" => "application/vnd.oasis.opendocument.text", + ".ods" => "application/vnd.oasis.opendocument.spreadsheet", + ".odp" => "application/vnd.oasis.opendocument.presentation", + ".odg" => "application/vnd.oasis.opendocument.graphics", + ".odc" => "application/vnd.oasis.opendocument.chart", + ".odf" => "application/vnd.oasis.opendocument.formula", + ".odi" => "application/vnd.oasis.opendocument.image", ".wasm" => "application/wasm", + ".zip" => "application/zip", + ".dmg" => "application/x-apple-diskimage", ".torrent" => "application/x-bittorrent", ".dvi" => "application/x-dvi", + ".bz2" => "application/x-bzip", + ".tbz" => "application/x-bzip-compressed-tar", + ".tar.bz2" => "application/x-bzip-compressed-tar", ".gz" => "application/x-gzip", + ".iso" => "application/x-iso9660-image", + ".exe" => "application/x-msdownload", ".pac" => "application/x-ns-proxy-autoconfig", ".swf" => "application/x-shockwave-flash", ".tar.gz" => "application/x-tgz", ".tgz" => "application/x-tgz", ".tar" => "application/x-tar", - ".zip" => "application/zip", - ".dmg" => "application/x-apple-diskimage", + ".xz" => "application/x-xz", + ".aac" => "audio/aac", + ".adts" => "audio/aac", + ".ac3" => "audio/ac3", + ".snd" => "audio/basic", + ".mid" => "audio/midi", + ".midi" => "audio/midi", + ".m4a" => "audio/mp4", + ".mp1" => "audio/mpeg", + ".mp2" => "audio/mpeg", ".mp3" => "audio/mpeg", + ".oga" => "audio/ogg", + ".ogg" => "application/ogg", + ".opus" => "audio/ogg", + ".spx" => "audio/ogg", + ".mlp" => "audio/vnd.dolby.mlp", + ".dts" => "audio/vnd.dts", + ".dtshd" => "audio/vnd.dts.hd", + ".flac" => "audio/x-flac", + ".mka" => "audio/x-matroska", ".m3u" => "audio/x-mpegurl", + ".mod" => "audio/x-mod", ".wma" => "audio/x-ms-wma", ".wax" => "audio/x-ms-wax", - ".ogg" => "application/ogg", ".wav" => "audio/x-wav", + ".otf" => "font/otf", + ".ttf" => "font/ttf", + ".woff" => "font/woff", + ".woff2" => "font/woff2", + ".bmp" => "image/bmp", ".gif" => "image/gif", + ".heic" => "image/heic", + ".heics" => "image/heic-sequence", + ".heif" => "image/heif", + ".heifs" => "image/heif-sequence", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", + ".tif" => "image/tiff", + ".tiff" => "image/tiff", + ".svg" => "image/svg+xml", + ".svgz" => "image/svg+xml", + ".webp" => "image/webp", + ".psd" => "image/vnd.adobe.photoshop", + ".apng" => "image/vnd.mozilla.apng", + ".ico" => "image/x-icon", ".xbm" => "image/x-xbitmap", ".xpm" => "image/x-xpixmap", ".xwd" => "image/x-xwindowdump", + ".ics" => "text/calendar", ".css" => "text/css", ".html" => "text/html", ".htm" => "text/html", @@ -55,25 +107,30 @@ ".patch" => "text/plain", ".ebuild" => "text/plain", ".eclass" => "text/plain", + ".vcard" => "text/vcard", + ".vcf" => "text/vcard", + ".vcs" => "text/x-vcalendar", ".rtf" => "application/rtf", - ".bmp" => "image/bmp", - ".tif" => "image/tiff", - ".tiff" => "image/tiff", - ".ico" => "image/x-icon", ".dtd" => "text/xml", ".xml" => "text/xml", + ".m4v" => "video/mp4", + ".mp4" => "video/mp4", ".mpeg" => "video/mpeg", ".mpg" => "video/mpeg", + ".ogv" => "video/ogg", ".mov" => "video/quicktime", ".qt" => "video/quicktime", + ".webm" => "video/webm", + ".m4u" => "video/vnd.mpegurl", + ".bik" => "video/vnd.radgamettools.bink", + ".bk2" => "video/vnd.radgamettools.bink", + ".smk" => "video/vnd.radgamettools.smacker", + ".flv" => "video/x-flv", + ".mkv" => "video/x-matroska", + ".mk3d" => "video/x-matroska-3d", ".avi" => "video/x-msvideo", ".asf" => "video/x-ms-asf", ".asx" => "video/x-ms-asf", - ".wmv" => "video/x-ms-wmv", - ".bz2" => "application/x-bzip", - ".tbz" => "application/x-bzip-compressed-tar", - ".tar.bz2" => "application/x-bzip-compressed-tar" + ".wmv" => "video/x-ms-wmv" ) # }}} - -# vim: set ft=conf foldmethod=marker et :