You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mime_types.conf 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify 'local.d/mime_types.conf' to add and merge
  5. # parameters defined inside this section
  6. #
  7. # You can modify 'override.d/mime_types.conf' to strictly override all
  8. # parameters defined inside this section
  9. #
  10. # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
  11. # for details
  12. #
  13. # Module documentation can be found at https://rspamd.com/doc/modules/mime_types.html
  14. mime_types {
  15. file = [
  16. "https://maps.rspamd.com/rspamd/mime_types.inc.zst",
  17. "$LOCAL_CONFDIR/local.d/maps.d/mime_types.inc.local",
  18. "${DBDIR}/mime_types.inc.local",
  19. "fallback+file://${CONFDIR}/maps.d/mime_types.inc"
  20. ]
  21. # Match specific extensions to specific content types
  22. extension_map = {
  23. html = "text/html";
  24. txt = [
  25. "message/disposition-notification",
  26. "text/plain",
  27. "text/rfc822-headers"
  28. ];
  29. pdf = [
  30. "application/octet-stream",
  31. "application/pdf"
  32. ];
  33. }
  34. .include(try=true,priority=5) "${DBDIR}/dynamic/mime_types.conf"
  35. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/mime_types.conf"
  36. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/mime_types.conf"
  37. }