示例#1
0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa
from django.conf import settings

from esb.utils import SmartHost

SYSTEM_NAME = 'BK_PAAS'

headers = {
    'X-APP-CODE': 'esb',
    'X-APP-TOKEN': settings.ESB_TOKEN,
}

host = SmartHost(host_prod=getattr(settings, 'BK_PAAS_HOST', ''))
示例#2
0
# -*- coding: utf-8 -*-
from esb.utils import SmartHost


SYSTEM_NAME = 'CMDB'

host = SmartHost(
    host_prod='api.cmdb.domain.com',
    host_test='',
)
示例#3
0
# -*- coding: utf-8 -*-
from esb.utils import SmartHost

SYSTEM_NAME = 'CM'

host = SmartHost(
    host_prod='paas.bk.com',
    host_test='',
)
示例#4
0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa
from django.conf import settings

from esb.utils import SmartHost

SYSTEM_NAME = 'CC'

host = SmartHost(host_prod=settings.HOST_CC, )

DEFAULT_BK_SUPPLIER_ACCOUNT = '0'
示例#5
0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa
from esb.utils import SmartHost

SYSTEM_NAME = 'QCLOUD_SMS'

host = SmartHost(host_prod='https://yun.tim.qq.com')

default_nation_code = '86'
示例#6
0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa
from esb.utils import SmartHost

# The system name in lowercase shall be the same as the system package name
SYSTEM_NAME = 'HCP'

host = SmartHost(
    # The domain name of system production environment shall be filled in
    host_prod='hcp.domain.com', )
示例#7
0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa
from esb.utils import SmartHost

SYSTEM_NAME = 'CMSI'

host = SmartHost(host_prod='need_to_be_updated', )

# 通过 SMTP 发送邮件的配置
smtp_host = ''
smtp_port = 25
smtp_user = ''
smtp_pwd = ''
smtp_usessl = False
smtp_usetls = False
mail_sender = '*****@*****.**'

# 通过第三方接口发送邮件的配置
dest_url = ''  # 第三方接口完整路径

# send_weixin 组件微信消息类型配置
wx_type = 'qy'

# 发送微信公众号消息配置
wx_app_id = ''
示例#8
0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa
from esb.utils import SmartHost

SYSTEM_NAME = 'QCLOUD_VOICE'

host = SmartHost(host_prod='https://cloud.tim.qq.com')

default_nation_code = '86'
voice_playtimes = 3
voice_prompttype = 2
示例#9
0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa
from django.conf import settings

from esb.utils import SmartHost

SYSTEM_NAME = 'CC'

host = SmartHost(host_prod=getattr(settings, 'HOST_CC_V3', ''))

DEFAULT_BK_SUPPLIER_ACCOUNT = '0'
示例#10
0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa
from esb.utils import SmartHost


SYSTEM_NAME = 'weixin_mp'

host = SmartHost(
    host_prod='https://api.weixin.qq.com',
)
示例#11
0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa
from esb.utils import SmartHost

# 系统名的小写形式要与系统包名保持一致
SYSTEM_NAME = 'HCP'

host = SmartHost(
    # 需要填入系统正式环境的域名地址
    host_prod='hcp.domain.com', )
示例#12
0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa
from django.conf import settings

from esb.utils import SmartHost

SYSTEM_NAME = 'BK_LOGIN'

headers = {
    'X-APP-CODE': 'esb',
    'X-APP-TOKEN': settings.ESB_TOKEN,
}

host = SmartHost(host_prod=settings.HOST_BK_LOGIN, )
示例#13
0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa
from django.conf import settings

from esb.utils import SmartHost

SYSTEM_NAME = 'FTA'

host = SmartHost(host_prod=getattr(settings, 'HOST_FTA', ''))
示例#14
0
# -*- coding: utf-8 -*-
from esb.utils import SmartHost

# 系统名的小写形式,与系统包名保持一致
SYSTEM_NAME = 'IDC'

host = SmartHost(
    # 需要填入系统正式环境的域名地址
    host_prod='10.160.148.38', )
示例#15
0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa
from django.conf import settings

from esb.utils import SmartHost

SYSTEM_NAME = 'BK_PAAS'

headers = {
    'X-APP-CODE': 'esb',
    'X-APP-TOKEN': settings.ESB_TOKEN,
}

host = SmartHost(host_prod=settings.PAAS_HOST, )