forked from shengxinjing/woniu-cmdb
-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.py
64 lines (56 loc) · 1.34 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
# coding=utf-8
# 数据库配置
db_config = {
'host':'localhost',
'user':'root',
'passwd':"",
'db':'cmdb'
}
page_config = {
"brand_name":'51Reboot',
'title':'hello reboot',
"favicon":'https://pic1.zhimg.com/6d660dd4156c64bfad13ff97d79c2f98_l.jpg',
"menu":[
{
# user配置最好不要修改,是和登陆认证相关的,直接在下面加配置即可
"name": 'user',
"title": '用户管理',
"data": [{
"name": 'username',
"title": '用户名'
},{
"name":'password',
"title":'密码'
}]
},
{
"name": 'host',
"title": '服务器',
"data": [{
"name": 'jifang',
"title": '机房'
},{
"name": 'jigui',
"title": '机柜'
},{
"name": 'SN',
"title": 'SN'
},{
"name": 'wanip',
"title": '公网IP'
},{
"name": 'lanip',
"title": '内网IP'
},{
"name": 'iloip',
"title": '管理IP'
},{
"name": 'prog',
"title": '项目'
},{
"name": 'app',
"title": '应用'
}]
}
]
}