-
Notifications
You must be signed in to change notification settings - Fork 190
/
Copy pathconfig.py
65 lines (57 loc) · 1.5 KB
/
config.py
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# encoding: utf-8
# page show record size
show_cnt = 15
# msyql dababase connection info
mysqldb_conn = {
'host' : 'localhost',
'user' : 'root',
'password' : '',
'db' : 'wyproxy',
'charset' : 'utf8'
}
# with out save http response content to database
save_content = True
# http map filenames to MIME types
# https://docs.python.org/2/library/mimetypes.html
http_mimes = ['text', 'image', 'application', 'video', 'message', 'audio']
# http static resource file extension
static_ext = ['js', 'css', 'ico']
# media resource files type
media_types = ['image', 'video', 'audio']
# http static resource files
static_files = [
'text/css',
# 'application/javascript',
# 'application/x-javascript',
'application/msword',
'application/vnd.ms-excel',
'application/vnd.ms-powerpoint',
'application/x-ms-wmd',
'application/x-shockwave-flash',
# 'image/x-cmu-raster',
# 'image/x-ms-bmp',
# 'image/x-portable-graymap',
# 'image/x-portable-bitmap',
# 'image/jpeg',
# 'image/gif',
# 'image/x-xwindowdump',
# 'image/png',
# 'image/vnd.microsoft.icon',
# 'image/x-portable-pixmap',
# 'image/x-xpixmap',
# 'image/ief',
# 'image/x-portable-anymap',
# 'image/x-rgb',
# 'image/x-xbitmap',
# 'image/tiff',
# 'video/mpeg',
# 'video/x-sgi-movie',
# 'video/mp4',
# 'video/x-msvideo',
# 'video/quicktime'
# 'audio/mpeg',
# 'audio/x-wav',
# 'audio/x-aiff',
# 'audio/basic',
# 'audio/x-pn-realaudio',
]