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