#!/usr/bin/env python3  
# -*- coding: utf-8 -*-  
"""
@Copyright (C) ansjer cop Video Technology Co.,Ltd.All rights reserved.
@AUTHOR: ASJRD018
@NAME: AnsjerFormal
@software: PyCharm
@DATE: 2019/10/16 9:45
@Version: python3.6
@MODIFY DECORD:ansjer dev
@file: config_formal.py
@Contact: chanjunkai@163.com
"""
import os

NGINX_RTMP_STAT = 'http://www.dvema.com/stat'
SERVER_DOMAIN_SSL = 'https://www.dvema.com/'
SERVER_DOMAIN = 'http://www.dvema.com/'
DOMAIN_HOST = 'www.dvema.com'
SERVER_HOST = 'localhost'
# PAYPAL_CRD = {
#     "mode": "live",  # sandbox or live
#     "client_id": "AdSRd6WBn-qLl9OiQHQuNYTDFSx0ZX0RUttqa58au8bPzoGYQUrt8bc6591RmH8_pEAIPijdvVYSVXyI",
#     "client_secret": "ENT-J08N3Fw0B0uAokg4RukljAwO9hFHPf8whE6-Dwd8oBWJO8AWMgpdTKpfB1pOy89t4bsFEzMWDowm"
# }
PAYPAL_CRD = {
    "mode": "sandbox",  # sandbox or live
    "client_id": "AVLoQVq3xHZ6FrF4mxHwlCPgVBAw4Fw5RtMkuxmYd23SkUTIY643n2g3KdK-Al8wV05I28lza5uoQbAA",
    "client_secret": "EO8kRc8yioDk0i2Qq-QMcVFfwkmyMJorTvBSLDTnxDJJ_wb9VoM_0jkUY9iEng2Flp1ze8wQOGpH5nB2"
}

DETECT_PUSH_DOMAIN = 'http://push.dvema.com/'
DETECT_PUSH_DOMAINS = 'https://push.dvema.com/'
DETECT_PUSH_DOMAIN_JIUAN = 'http://jiuan.push.dvema.com/'
DETECT_PUSH_DOMAINS_JIUAN = 'https://jiuan.push.dvema.com/'
# 数据库dyanamo品牌日志数据库
USER_BRAND = 'user_brand'
USER_BRAND_ALL = 'user_brand_all'

# type =2
JPUSH_CONFIG = {
    'com.ansjer.accloud_ab': {
        'Key': 'f0dc047e5e53fd14199de5b0',
        'Secret': 'aa7f7db33e9f0a7f3871aa1c'},
    'com.ansjer.adcloud_ab': {
        'Key': '76d97b535185114985608234',
        'Secret': 'c9a92b301043cc9c52778692'},
    'com.ansjer.zccloud_ab': {
        'Key': 'd9924f56d3cc7c6017965130',
        'Secret': '869d832d126a232f158b5987'},
    'com.ansjer.loocamccloud_ab': {
        'Key': 'd1cc44797b4642b0e05304fe',
        'Secret': 'c3e8b4ca8c576de61401e56a'},
    'com.ansjer.loocamdcloud_ab': {
        'Key': '76d97b535185114985608234',
        'Secret': 'c9a92b301043cc9c52778692'},
    'com.ansjer.zccloud_a': {
        'Key': '57de2a80d68bf270fd6bdf5a',
        'Secret': '3d354eb6a0b49c2610decf42'},
    'com.ansjer.accloud_a': {
        'Key': 'ff95ee685f49c0dc4013347b',
        'Secret': 'de2c20959f5516fdeeafe78e'},
    'com.ansjer.adcloud_a': {
        'Key': '2e47eb1aee9b164460df3668',
        'Secret': 'b9137d8d684bc248f1809b6d'},
    'com.ansjer.loocamccloud_a': {
        'Key': '23c9213215c7ca0ec945629b',
        'Secret': '81e4b1e859cc8387e2e6c431'},
    'com.ansjer.loocamdcloud_a': {
        'Key': '1dbdd60a16e9892d6f68a073',
        'Secret': '80a97690e7e043109059b403'},
    'com.ansjer.customizedb_a': {
        'Key': '9d79630aa49adfa291fe2568',
        'Secret': '4d8ff52f88136561875a0212'},
    'com.ansjer.customizedd_a': {
        'Key': '8fc4f495685bde53341ee25d',
        'Secret': 'f1da11fa466509fa2670fb66',
    }
}
# type =1
FCM_CONFIG = {
    'com.ansjer.zccloud_a': 'AAAAb9YP3rk:APA91bHu8u-CTpcd0g6lKPo0WNVqCi8jZub1cPPbSAY9AucT1HxlF65ZDUko9iG8q2ch17bwu9YWHpK1xI1gHSRXCslLvZlXEmHZC0AG3JKg15XuUvlFKACIajUFV-pOeGRT8tM6-31I',
    'com.ansjer.loocamccloud_a': 'AAAAb9YP3rk:APA91bFCgd-kbVmpK4EVpfdHH_PJZQCYTkOGnTZdIuBWEz2r7aMRsJYHOH3sB-rwcbaRWgnufTyjX9nGQxb6KxQbWVk4ah_H-M3IqGh6Mb60WQQAuR33V6g_Jes5pGL6ViuIxGHqVMaR',
    'com.ansjer.loocamdcloud_a': 'AAAAb9YP3rk:APA91bGw2I2KMD4i-5T7nZO_wB8kuAOuqgyqe5rxmY-W5qkpYEx9IL2IfmC_qf6B_xOyjIDDSjckvMo-RauN__SEoxvAkis7042GRkoKpw7cjZ_H8lC-d50PC0GclPzccrOGFusyKbFY',
    'com.ansjer.customizedb_a': 'AAAAb9YP3rk:APA91bE7kI4vcm-9h_CJNFlOZfc-xwP4Btn6AnjOrwoKV6fgYN7fdarkO76sYxVZiAbDnxsFfOJyP7vQfwyan6mdjuyD5iHdt_XgO22VqniC0vA1V4GJiCS8Tp7LxIX8JVKZl9I_Powt',
    'com.ansjer.customizeda_a': 'AAAAb9YP3rk:APA91bF0HzizVWDc6dKzobY9fsaKDK4veqkOZehDXshVXs8pEEvNWjR_YWbhP60wsRYCHCal8fWN5cECVOWNMMzDsfU88Ty2AUl8S5FtZsmeDTkoGntQOswBr8Ln7Fm_LAp1VqTf9CpM',
    'com.ansjer.customizedd_a': 'AAAAb9YP3rk:APA91bHkxOozJWBrlv3eNT0PgwosYENI9aM4Zuzd418cX-iKkpa1zFNC5MkNDKApx1KH4fhmAfaJ6IMRZ0nj5GIxCpstDYCaZWwgC7-etqfSxG5JAq8LOwJx0o_1tUZqwjIic8ztsg0o',
    'com.ansjer.adcloud_a': 'AAAAb9YP3rk:APA91bFm06w8b9OKQ0gz0iaWFuRqRIkvgAz6z7Gp3dBU_X-LNGJQd1hc1QR2W7QzBglF8SHtERA45a2lbdLRa5qv7hxfd6W_sJLBK7dA8jklsOQBvy505oUzTwMKWy4TwH-exps9KrhO',
    'com.ansjer.accloud_a': 'AAAAb9YP3rk:APA91bFm06w8b9OKQ0gz0iaWFuRqRIkvgAz6z7Gp3dBU_X-LNGJQd1hc1QR2W7QzBglF8SHtERA45a2lbdLRa5qv7hxfd6W_sJLBK7dA8jklsOQBvy505oUzTwMKWy4TwH-exps9KrhO',
    'com.ansjer.zccloud_ab': 'AAAAb9YP3rk:APA91bHu8u-CTpcd0g6lKPo0WNVqCi8jZub1cPPbSAY9AucT1HxlF65ZDUko9iG8q2ch17bwu9YWHpK1xI1gHSRXCslLvZlXEmHZC0AG3JKg15XuUvlFKACIajUFV-pOeGRT8tM6-31I',
}
APNS_CONFIG = {
    'com.ansjer.loocamccloud': {
        'pem_path': 'Ansjer/file/apns_pem/lcc-dev.pem',
    },
    'com.ansjer.zosidcloud': {
        'pem_path': 'Ansjer/file/apns_pem/zosidcloud-dev.pem',
    },
    'com.ansjer.customizedb': {
        'pem_path': 'Ansjer/file/apns_pem/customizedb-dev.pem',
    },
    'com.ansjer.customizeda': {
        'pem_path': 'Ansjer/file/apns_pem/customizeda-dev.pem',
    },
    'com.ansjer.zccloud': {
        'pem_path': 'Ansjer/file/apns_pem/zccloud-dev.pem',
    },
    'com.ansjer.accloud': {
        'pem_path': 'Ansjer/file/apns_pem/accloud-dev.pem',
    },
    'com.ansjer.customizede': {
        'pem_path': 'Ansjer/file/apns_pem/ZhouShi-dev.pem',
    },
    'com.ansjer.customizedc': {
        'pem_path': 'Ansjer/file/apns_pem/customizedc.pem',
    }
}
APNS_MODE = 'prod'
# 根路径
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SERVER_TYPE = os.environ.get('DJANGO_SETTINGS_MODULE')

TUTK_PUSH_DOMAIN = 'http://push.iotcplatform.com/tpns'