# gaia local settings template
DEBUG = False

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',  # 设置为mysql数据库
        'NAME': 'plutus_hotfix',
        'USER': 'work',
        'PASSWORD': 'Gengmei1',
        'HOST': 'local-mysql',
        'PORT': '3306',
        'OPTIONS': {
            "init_command": "SET foreign_key_checks = 0;",
            "charset": "utf8mb4",  # 为了支持emoji表情
        },
    },
}

CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://192.168.168.142:6379/11",
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
        }
    }
}

RM_SERVER="https://api.puhuifinance.com"
RM_AUTH_SERVER="https://api.puhuifinance.com"
RM_TOKEN="AYLDASuPfbpsEQB6"
RM_CLIENT_ID="gengmei"
RM_SECRET="M6RBx4SkJcjgzQij"


ZA_APP_KEY = '63da669f3333fe09024d50dd04fee65c'
ZA_URL = 'http://opengw.daily.zhongan.com/Gateway.do'
ZA_PUB_KEY = '/srv/secret/zhongan_public.pem'
ZA_PRI_KEY = '/srv/secret/zhongan_private.pem'


AES_KEY = '6O58bOnKftwvbUM6' # 16个字节的密钥，需要重新生成
AES_IV = '7tIFgpydqrfer3l3' # 16个字节的初始向量，需要重新生成

YINUO_SECRECT = 'kwR58f2BNLWemSmOEDsi9mJReWpHfGo8'
YINUO_USER_ID = 'KOQ6CNWM'
YINUO_HOST = 'https://api-sandbox.yinuobaoxian.com'
YINUO_PREMIUM = 5
YINUO_PRODUCT_ID = '8YMWI5QZ'
YINUO_PLAN = 'A'
YINUO_SUM_INSURED = 50000
YINUO_EXPIRATION_DAYS = 210
###Add by Yingcai###
#YRD_SERVER = 'http://pay.yirendai.com'
#YRD_KEY = 'Tn0Kvprwj53xn83z78IsCw=='
USER_SHUNT = (0.01, 0.01, 0.99)
### add by yunyu###
BROKER_URL = 'redis://192.168.168.142:6379/114'
SENTRY_CELERY_ENDPOINT = 'http://9f8992868f0348efaca2f4375e8db1df:11764cbbdb1440c38142c9e1a1e663ac@sentry.igengmei.com/131'
ZHONGAN_FAIL_MAILS = ['dingyingcai@gmei.com', 'zhengdixun@gmei.com', 'yuqiaolin@gmei.com']
