-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.def.h
41 lines (34 loc) · 831 Bytes
/
config.def.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#define MAXFDS 128
#define DEFAULT_CONF_PORT 7000
#define DEFAULT_CONF_QUIET 0
#define DEFAULT_CONF_CHROOT 0
#define DEFAULT_CONF_HOSTNAME "127.0.0.1"
#define DEFAULT_CONF_LISTEN_ADDR "127.0.0.1"
#define DEFAULT_CONF_ROOT_DIR "."
#define INDEX_FILE "gophermap"
#define DEFAULT_MIMETYPE '9'
/* mime-types */
static const struct {
char *ext;
char type;
} mimes[] = {
{ "xhtml", 'h' },
{ "html", 'h' },
{ "htm", 'h' },
{ "xml", '0' },
{ "js", '0' },
{ "css", '0' },
{ "txt", '0' },
{ "md", '0' },
{ "rst", '0' },
{ "c", '0' },
{ "svg", '0' },
{ "py", '0' },
{ "h", '0' },
{ "png", 'I' },
{ "jpeg", 'I' },
{ "jpg", 'I' },
{ "bmp", 'I' },
{ "gif", 'g' },
{ "pdf", 'd' },
};