-
Notifications
You must be signed in to change notification settings - Fork 24
/
settings.py
46 lines (40 loc) · 1.36 KB
/
settings.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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/12/24 16:57
# @Author : Fred Yang
# @File : settings.py
# @Role : 发布配置信息
# 系统配置中的API地址,网关地址
api_gw = 'http://gw.shinezone.net.cn/api'
mail_api = '{}/mg/v2/notifications/mail/'.format(api_gw)
login_api = '{}/accounts/login/'.format(api_gw)
publish_info_api = '{}/task/v2/task_other/publish_cd/'.format(api_gw)
docker_registry_info_api = '{}/task/v2/task_other/docker_registry/'.format(api_gw)
get_key_api = '{}/task/v2/task/accept/'.format(api_gw)
### cmdb 读取get,获取CSRF 邮件发送post 镜像仓库信息get
api_user = 'publish'
api_pwd = 'shenshuo'
api_key = 'JJFTQNLXHBYWSVSCINNEWNDFJRKWGY2UNJTTSVTLMN3UGUKXPFDE4NDH'
api_settings = dict(
api_user=api_user,
api_pwd=api_pwd,
api_key=api_key,
api_gw=api_gw,
mail_api=mail_api,
login_api=login_api,
publish_info_api=publish_info_api,
get_key_api=get_key_api,
docker_registry_info_api=docker_registry_info_api
)
# 发布接口账户密码
publish_info = {
'user': 'publish',
'password': 'shenshuo',
'key': 'JJFTQNLXHBYWSVSCINNEWNDFJRKWGY2UNJTTSVTLMN3UGUKXPFDE4NDH'
}
# CMDB接口账户密码
cmdb_info = {
'user': 'cmdb',
'password': 'password',
'key': 'O42EEODGMFHGMYT2OAM3KN3HJVBE4Z3CKI3TKRDHG5MWSUCGMNHEE6LI'
}