# coding:utf8
import os

from .base_settings import *
import helios.rpc

DEBUG = True
STATIC_URL = '/static/'
STATIC_ROOT = '/srv/apps/hera/static/'
CACHES = {
    'default': {
        'BACKEND': 'django_redis.cache.RedisCache',
        'LOCATION': 'redis://192.168.168.142:6379/5',
        # 'LOCATION': 'redis://127.0.0.1:6379/5',
        'TIMEOUT': 86400, # 3600 x 24
    },
}
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

RPC_URL = 'http://rpc.test.gengmei.cc/api/'
RPC_KEY = 'basic:6o9sVEB6+H5U61rfZpVMioWcRRoU32uazNE3h18kwcAqOMPVdjmvQ72XxZVNLNl6RSACrgLeD7xrKYsxL1iZ6A=='

BACKEND = 'http://backend-service'

QINIU_ACCESS_KEY = "UPCOYIJkZOMcdd9FDzpBqYjzWUh55fBpVi3AhWpL"

QINIU_SECRET_KEY = "z5YvpDDSam_JE345Z8J_f3TufzelOW2VOGNoBl9e"
QINIU_HOST = "http://wanmeizhensuo.qiniudn.com/"
QINIU_SCOPE = 'wanmeizhensuo'

DOCTOR_URL = 'http://doctor.test.gengmei.cc'
ASCLE = 'http://doctor.test.gengmei.cc'

ES_HOSTS = [{'host': '192.168.168.142', 'port': 9200}]  # [{'host':'','port': }]
ES_INDEX = 'gm_hades_test_write'  # es index
ES_TYPE = 'doctor'  # es type
ES_SEARCH_TIMEOUT = 60


CELERY_RESULT_BACKEND = ''

DOCTOR_BUSINESS_CHANNAL_ID = 51

EMAIL_USER = 'doctor@wanmeizhensuo.com'
EMAIL_PSWD = 'xl60QkFtwJq6ziswn2a4r4pkFNozI13g'
BROKER_URL = 'redis://192.168.168.142:6379/1'
# BROKER_URL = 'redis://127.0.0.1:6379'

EXPORT_LOG = {'host': '192.168.168.142', 'port': 6379, 'db': 7}
SELF_SUPPORT_WHITELIST_HOSPITAL = [
    ('bjrlsylmrzs', '北京瑞丽舍医疗美容诊所'),
    ('chqxnzhx', '重庆西南医院'),
]

USE_VERIFY_CODE = False

PUSH_COUPON_CHANNAL_ID = 93

RAVEN_CONFIG = {
    'dsn': ''
}

# move from base
ALLOWED_HOSTS = ['*']
