"""
独立于config.py的配置文件
"""

# 配置信息,配置模式和根路径
CONFIG_INFO = 'local'

"""
AWS相关
"""
# ======================================================================================================================
# aws api key
AWS_ARN_S3 = 'arn:aws-cn:s3'
REGION_NAME = 'cn-northwest-1'
ACCESS_KEY_ID = 'AKIA2MMWBR4DSFG67DTG'
SECRET_ACCESS_KEY = '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'

# 存储桶
PUSH_BUCKET = 'push'                                # 推送存储桶
PUSH_INACCURATE_BUCKET = 'push-inaccurate'          # 推送不准确存储桶
AVATAR_BUCKET = 'avatar-cn'                         # 头像存储桶
LOG_BUCKET = 'ansjer-statres'                       # 日志存储桶
PUSH_CLOUD_PHOTO = 'push-cloud-photo'               # 推送云相册存储桶

# redis节点
SERVER_HOST = '127.0.0.1'
PUSH_REDIS_ADDRESS = '127.0.0.1'
# ======================================================================================================================

# 域名

OAUTH_ACCESS_TOKEN_SECRET = 'local_a+jbgnw%@1%zy^=@dn62%'
OAUTH_REFRESH_TOKEN_SECRET = 'local_r+jbgnw%@1%zy^=@dn62%'

DOMAIN_HOST = '127.0.0.1'
SERVER_DOMAIN = 'http://127.0.0.1:8000/'
SERVER_DOMAIN_SSL = 'http://127.0.0.1:8000/'
NGINX_RTMP_STAT = 'http://127.0.0.1:8000/stat'
DETECT_PUSH_DOMAIN = 'http://test.push.dvema.com/'
DETECT_PUSH_DOMAINS = 'https://test.push.dvema.com/'
DETECT_PUSH_DOMAIN_JIUAN = 'http://jiuan.push.dvema.com/'
DETECT_PUSH_DOMAINS_JIUAN = 'https://jiuan.push.dvema.com/'
TUTK_PUSH_DOMAIN = 'http://push.iotcplatform.com/tpns'

# PayPal
PAYPAL_CRD = {
    "mode": "sandbox",  # sandbox or live
    "client_id": "AVLoQVq3xHZ6FrF4mxHwlCPgVBAw4Fw5RtMkuxmYd23SkUTIY643n2g3KdK-Al8wV05I28lza5uoQbAA",
    "client_secret": "EO8kRc8yioDk0i2Qq-QMcVFfwkmyMJorTvBSLDTnxDJJ_wb9VoM_0jkUY9iEng2Flp1ze8wQOGpH5nB2"
}
PAYPAL_WEB_HOOK_ID = '6TS30758D98835230'
PAYPAL_WEB_HOOK_ID_TWO = '2BH56575UJ9324151'

# 数据库dyanamo品牌日志数据库
USER_BRAND = 'test_user_brand'
USER_BRAND_ALL = 'test_user_brand_all'

APNS_MODE = 'dev'

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.cloudlife.commissionf': {
        'pem_path': 'Ansjer/file/apns_pem/commissionf-dev.pem',
    }
}
