-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
47 lines (30 loc) · 976 Bytes
/
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
# -*- coding: utf-8 -*-
from util.struct import Const
##################################################
Static = Const()
Static.Debug = True
Static.GZip = True
Static.Secret = r'02b6d796814c353a1f0370a416018016'
##################################################
# 线程
Static.ThreadPool = 5
Static.ThreadPoolLimit = 10
##################################################
# 数据库
Static.MySqlMaster = (r'127.0.0.1', 3306)
Static.MySqlSlave = (r'127.0.0.1', 3306)
Static.MySqlName = r'demo'
Static.MySqlUser = r'root'
Static.MySqlPasswd = r''
Static.MySqlMaxIdleConn = 32
Static.MySqlMaxOpenConn = 128
Static.RedisHost = (r'127.0.0.1', 6379)
Static.RedisMaxConn = 128
Static.RedisExpires = 3600
##################################################
# 第三方接口
# 百度地图
Static.BaiduMapAK = r'60ZDdws6u4jZGVzmfDsw2DoZ'
# 图灵机器人
Static.TuringApiKey = r'3bbac767ada27e4759468b8514efb766'
##################################################