Skip to content

Instantly share code, notes, and snippets.

@mhf-ir
Created October 28, 2022 09:10
Show Gist options
  • Save mhf-ir/627796e9a391334d5e1861e0ab672de5 to your computer and use it in GitHub Desktop.
Save mhf-ir/627796e9a391334d5e1861e0ab672de5 to your computer and use it in GitHub Desktop.
nginx mimetype
default_type application/octet-stream;
types {
# essentials
application/xhtml+xml xhtml;
application/xml xml;
application/xslt+xml xsl;
text/calendar ics;
text/css css;
text/csv csv;
text/html htm html shtml;
text/markdown md markdown;
text/mathml mml;
text/plain txt;
# xml
application/atom+xml atom;
application/rdf+xml rdf;
application/rss+xml rss;
# json
application/json json map topojson;
application/geo+json geojson;
application/ld+json jsonld;
application/manifest+json webmanifest;
application/x-ndjson ndjson;
application/x-web-app-manifest+json webapp;
# javascript
application/javascript js mjs;
application/wasm wasm;
# multimedia:images
application/dicom dcm;
application/postscript ai eps ps;
image/apng apng;
image/bmp bmp;
image/gif gif;
image/avif avif;
image/avif-sequence avifs;
image/heic heic;
image/heic-sequence heics;
image/heif heif hif;
image/heif-sequence heifs;
image/jpeg jpeg jpg;
image/jxr jxr hdp wdp;
image/png png;
image/svg+xml svg svgz;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/webp webp;
image/x-icon cur ico;
image/x-jng jng;
# multimedia
application/ogg ogg;
# multimedia:audio
audio/flac flac;
audio/midi mid midi kar;
audio/mp2t tsa;
audio/mp4 aac f4a f4b m4a;
audio/mpeg mp3;
audio/ogg oga opus;
audio/x-matroska mka;
audio/x-realaudio ra;
audio/x-wav wav;
# multimedia:video
video/3gpp 3gp 3gpp;
video/mp2t ts tsv;
video/mp4 f4p f4v m4v mp4;
video/mpeg mpeg mpg;
video/ogg ogv;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-matroska mkv mk3d;
video/x-ms-asf asf asx;
video/x-ms-wmv wmv;
video/x-msvideo avi;
# multimedia:manifest
application/dash+xml mpd;
application/vnd.apple.mpegurl m3u8;
text/vtt vtt;
# documents
application/epub+zip epub;
application/msonenote one onepkg onetmp onetoc2;
application/msword doc psw pwd wbk mcw;
application/oebps-package+xml opf;
application/pdf pdf;
application/rtf rtf;
application/vnd.amazon.mobi8-ebook azw azw3 kfx;
application/vnd.ms-excel xls;
application/vnd.ms-excel.addin.macroEnabled.12 xlam;
application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb;
application/vnd.ms-excel.sheet.macroEnabled.12 xlsm;
application/vnd.ms-excel.template.macroEnabled.12 xltm;
application/vnd.ms-officetheme thmx;
application/vnd.ms-powerpoint ppt;
application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam;
application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm;
application/vnd.ms-powerpoint.slide.macroEnabled.12 sldm;
application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm;
application/vnd.ms-powerpoint.template.macroEnabled.12 potm;
application/vnd.ms-word.document.macroEnabled.12 docm;
application/vnd.ms-word.template.macroEnabled.12 dotm;
application/vnd.oasis.opendocument.presentation odp;
application/vnd.oasis.opendocument.spreadsheet ods;
application/vnd.oasis.opendocument.text odt;
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx;
application/vnd.openxmlformats-officedocument.presentationml.slide sldx;
application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx;
application/vnd.openxmlformats-officedocument.presentationml.template potx;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx;
application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx;
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx;
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx;
application/x-mobipocket-ebook prc mobi;
image/vnd.djvu djvu djv;
# fonts
application/vnd.ms-fontobject eot;
font/collection ttc;
font/otf otf;
font/ttf ttf;
font/woff woff;
font/woff2 woff2;
# archive
application/vnd.ms-cab-compressed cab;
application/x-7z-compressed 7z;
application/x-cfs-compressed cfs;
application/x-dar dar;
application/x-gtar tar.gz tgz tar.z tar.bz2 tbz2 tar.lz tlz tar.xz txz;
application/x-lzip lzip;
application/x-ms-wim wim;
application/x-rar-compressed rar;
application/x-tar tar;
application/zip zip zipx;
application/zstd zst;
# misc
application/java-archive ear jar war;
application/mac-binhex40 hqx;
application/vnd.debian.binary-package deb;
application/vnd.google-earth.kml+xml kml;
application/vnd.google-earth.kmz kmz;
application/vnd.wap.wmlc wmlc;
application/x-apple-diskimage dmg;
application/x-bb-appworld bbaw;
application/x-bittorrent torrent;
application/x-chrome-extension crx;
application/x-cocoa cco;
application/x-dosexec exe;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-opera-extension oex;
application/x-perl pl pm;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert crt der pem;
application/x-xpinstall xpi;
text/cache-manifest appcache;
text/vcard vcard vcf;
text/vnd.rim.location.xloc xloc;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment