logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

config.h (1084B)


  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #define BUFFER_SIZE 4096
  4. #define FIELD_MAX 200
  5. /* mime-types */
  6. static const struct {
  7. char *ext;
  8. char *type;
  9. } mimes[] = {
  10. { "xml", "application/xml; charset=utf-8" },
  11. { "xhtml", "application/xhtml+xml; charset=utf-8" },
  12. { "html", "text/html; charset=utf-8" },
  13. { "htm", "text/html; charset=utf-8" },
  14. { "css", "text/css; charset=utf-8" },
  15. { "txt", "text/plain; charset=utf-8" },
  16. { "md", "text/plain; charset=utf-8" },
  17. { "c", "text/plain; charset=utf-8" },
  18. { "h", "text/plain; charset=utf-8" },
  19. { "gz", "application/x-gtar" },
  20. { "tar", "application/tar" },
  21. { "pdf", "application/x-pdf" },
  22. { "png", "image/png" },
  23. { "gif", "image/gif" },
  24. { "jpeg", "image/jpg" },
  25. { "jpg", "image/jpg" },
  26. { "iso", "application/x-iso9660-image" },
  27. { "webp", "image/webp" },
  28. { "svg", "image/svg+xml; charset=utf-8" },
  29. { "flac", "audio/flac" },
  30. { "mp3", "audio/mpeg" },
  31. { "ogg", "audio/ogg" },
  32. { "mp4", "video/mp4" },
  33. { "ogv", "video/ogg" },
  34. { "webm", "video/webm" },
  35. };
  36. #endif /* CONFIG_H */