-
Notifications
You must be signed in to change notification settings - Fork 10
/
config.def.py
76 lines (72 loc) · 2.36 KB
/
config.def.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
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Version : $Id$
__all__ = [
'settings',
]
import os
from xcat import mopee
# app所在目录
app_path = os.path.dirname(__file__)
settings = {
'site_name': 'QcoreCMS', # 网站名
'admin_name': 'admin', # 安装时的管理员用户名
'admin_email': 'admin@admin.com', # 管理员邮箱
'admin_passwd': 'XcatCMS2', # 安装时的管理员密码
'debug': True,
'xsrf_cookies': True,
'cookie_secret': 'QcoreCMS-Xcat-app',
'app_path': app_path,
'static_path': os.path.join(app_path, 'static'),
'template_path': os.path.join(app_path, 'app', 'views'),
'locale_path': os.path.join(app_path, 'locale'),
'run_mode': 'devel', # 运行模式有: devel、deploy
'version': '2.0.0-dev',
'devel': {
'database': mopee.PostgresqlAsyncDatabase('qcorecms',
user='',
host='127.0.0.1',
password='',
size=40,
),
'session': {
'storage': 'Memcache',
'config': {
'servers': ['127.0.0.1:11211'],
'left_time': 3600 * 24,
'maxclients': 100,
}
},
'cache': {
'storage': 'Memcache',
'config': {
'servers': ['127.0.0.1:11211'],
'maxclients': 100,
}
},
},
'deploy': {
'database': mopee.PostgresqlAsyncDatabase('qcorecms',
user='',
host='127.0.0.1',
password='',
size=40,
),
'session': {
'storage': 'Memcache',
'config': {
'servers': ['127.0.0.1:11211'],
'left_time': 3600 * 24,
'maxclients': 300,
}
},
'cache': {
'storage': 'Memcache',
'config': {
'servers': ['127.0.0.1:11211'],
'maxclients': 300,
}
},
},
}