config_local.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. """
  2. 独立于config.py的配置文件
  3. """
  4. import os
  5. # 配置信息,配置模式和根路径
  6. CONFIG_INFO = 'local'
  7. SERVER_TYPE = os.environ.get('DJANGO_SETTINGS_MODULE')
  8. BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
  9. """
  10. AWS相关
  11. """
  12. # ======================================================================================================================
  13. # aws api key
  14. AWS_ARN_S3 = 'arn:aws-cn:s3'
  15. REGION_NAME = 'cn-northwest-1'
  16. ACCESS_KEY_ID = 'AKIA2MMWBR4DSFG67DTG'
  17. SECRET_ACCESS_KEY = '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'
  18. # 存储桶
  19. PUSH_BUCKET = 'push' # 推送存储桶
  20. PUSH_INACCURATE_BUCKET = 'push-inaccurate' # 推送不准确存储桶
  21. AVATAR_BUCKET = 'avatar-cn' # 头像存储桶
  22. LOG_BUCKET = 'ansjer-statres' # 日志存储桶
  23. # redis节点
  24. SERVER_HOST = '127.0.0.1'
  25. PUSH_REDIS_ADDRESS = '127.0.0.1'
  26. # ======================================================================================================================
  27. # 域名
  28. OAUTH_ACCESS_TOKEN_SECRET = 'local_a+jbgnw%@1%zy^=@dn62%'
  29. OAUTH_REFRESH_TOKEN_SECRET = 'local_r+jbgnw%@1%zy^=@dn62%'
  30. DOMAIN_HOST = '127.0.0.1'
  31. SERVER_DOMAIN = 'http://127.0.0.1:8000/'
  32. SERVER_DOMAIN_SSL = 'http://127.0.0.1:8000/'
  33. NGINX_RTMP_STAT = 'http://127.0.0.1:8000/stat'
  34. DETECT_PUSH_DOMAIN = 'http://test.push.dvema.com/'
  35. DETECT_PUSH_DOMAINS = 'https://test.push.dvema.com/'
  36. DETECT_PUSH_DOMAIN_JIUAN = 'http://jiuan.push.dvema.com/'
  37. DETECT_PUSH_DOMAINS_JIUAN = 'https://jiuan.push.dvema.com/'
  38. TUTK_PUSH_DOMAIN = 'http://push.iotcplatform.com/tpns'
  39. # PayPal
  40. PAYPAL_CRD = {
  41. "mode": "sandbox", # sandbox or live
  42. "client_id": "AVLoQVq3xHZ6FrF4mxHwlCPgVBAw4Fw5RtMkuxmYd23SkUTIY643n2g3KdK-Al8wV05I28lza5uoQbAA",
  43. "client_secret": "EO8kRc8yioDk0i2Qq-QMcVFfwkmyMJorTvBSLDTnxDJJ_wb9VoM_0jkUY9iEng2Flp1ze8wQOGpH5nB2"
  44. }
  45. PAYPAL_WEB_HOOK_ID = '6TS30758D98835230'
  46. PAYPAL_WEB_HOOK_ID_TWO = '2BH56575UJ9324151'
  47. # 数据库dyanamo品牌日志数据库
  48. USER_BRAND = 'test_user_brand'
  49. USER_BRAND_ALL = 'test_user_brand_all'
  50. APNS_MODE = 'dev'
  51. APNS_CONFIG = {
  52. 'com.ansjer.loocamccloud': {
  53. 'pem_path': 'Ansjer/file/apns_pem/lcc-dev.pem',
  54. },
  55. 'com.ansjer.zosidcloud': {
  56. 'pem_path': 'Ansjer/file/apns_pem/zosidcloud-dev.pem',
  57. },
  58. 'com.ansjer.customizedb': {
  59. 'pem_path': 'Ansjer/file/apns_pem/customizedb-dev.pem',
  60. },
  61. 'com.ansjer.customizeda': {
  62. 'pem_path': 'Ansjer/file/apns_pem/customizeda-dev.pem',
  63. },
  64. 'com.ansjer.zccloud': {
  65. 'pem_path': 'Ansjer/file/apns_pem/zccloud-dev.pem',
  66. },
  67. 'com.ansjer.accloud': {
  68. 'pem_path': 'Ansjer/file/apns_pem/accloud-dev.pem',
  69. },
  70. 'com.ansjer.customizede': {
  71. 'pem_path': 'Ansjer/file/apns_pem/ZhouShi-dev.pem',
  72. },
  73. }