forked from momosecurity/aswan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
51 lines (45 loc) · 959 Bytes
/
test.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
# coding=utf8
# 存储各项配置信息的redis
REDIS_CONFIG = {
"host": "127.0.0.1",
"port": 6379,
"db": 1,
"password": "",
"max_connections": 40,
"socket_timeout": 1,
"decode_responses": True
}
# 作为命中日志队列的redis
LOG_REDIS_CONFIG = {
"host": "127.0.0.1",
"port": 6379,
"db": 1,
"password": "",
"max_connections": 40,
"socket_timeout": 1,
"decode_responses": True
}
# 存储上报数据的redis
REPORT_REDIS_CONFIG = {
"host": "127.0.0.1",
"port": 6379,
"db": 1,
"password": "",
"max_connections": 40,
"socket_timeout": 1,
"decode_responses": True
}
# 存储命中日志的mysql
LOG_MYSQL_CONFIG = {
'host': '127.0.0.1',
'port': 3306,
'user': 'root',
'passwd': 'root',
'charset': 'utf8',
'db': 'risk_control_test',
}
# 存储权限等信息的mongo
SOC_MONGO_HOST = [
"127.0.0.1:27017",
]
MONGO_DB = "risk_control_test"