config_local.py 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. import os
  4. # 配置信息
  5. CONFIG_INFO = 'test'
  6. OAUTH_ACCESS_TOKEN_SECRET = 'local_a+jbgnw%@1%zy^=@dn62%'
  7. OAUTH_REFRESH_TOKEN_SECRET = 'local_r+jbgnw%@1%zy^=@dn62%'
  8. NGINX_RTMP_STAT = 'http://127.0.0.1:8000/stat'
  9. SERVER_DOMAIN = 'http://127.0.0.1:8000/'
  10. SERVER_DOMAIN_SSL = 'http://127.0.0.1:8000/'
  11. SERVER_HOST = '127.0.0.1'
  12. DOMAIN_HOST = '127.0.0.1'
  13. PUSH_REDIS_ADDRESS = '127.0.0.1'
  14. # SERVER_HOST = '127.0.0.1'
  15. # DOMAIN_HOST = '127.0.0.1'
  16. RTMP_PUSH_URL = 'rtmp://127.0.0.1:1935/hls'
  17. PAYPAL_CRD = {
  18. "mode": "sandbox", # sandbox or live
  19. "client_id": "AVLoQVq3xHZ6FrF4mxHwlCPgVBAw4Fw5RtMkuxmYd23SkUTIY643n2g3KdK-Al8wV05I28lza5uoQbAA",
  20. "client_secret": "EO8kRc8yioDk0i2Qq-QMcVFfwkmyMJorTvBSLDTnxDJJ_wb9VoM_0jkUY9iEng2Flp1ze8wQOGpH5nB2"
  21. }
  22. PAYPAL_WEB_HOOK_ID = '6TS30758D98835230'
  23. PAYPAL_WEB_HOOK_ID_TWO = '2BH56575UJ9324151'
  24. DETECT_PUSH_DOMAIN = 'http://test.push.dvema.com/'
  25. DETECT_PUSH_DOMAINS = 'https://test.push.dvema.com/'
  26. DETECT_PUSH_DOMAIN_JIUAN = 'http://jiuan.push.dvema.com/'
  27. DETECT_PUSH_DOMAINS_JIUAN = 'https://jiuan.push.dvema.com/'
  28. # 数据库dyanamo品牌日志数据库
  29. USER_BRAND = 'test_user_brand'
  30. USER_BRAND_ALL = 'test_user_brand_all'
  31. APNS_CONFIG = {
  32. 'com.ansjer.loocamccloud': {
  33. 'pem_path': 'Ansjer/file/apns_pem/lcc-dev.pem',
  34. },
  35. 'com.ansjer.zosidcloud': {
  36. 'pem_path': 'Ansjer/file/apns_pem/zosidcloud-dev.pem',
  37. },
  38. 'com.ansjer.customizedb': {
  39. 'pem_path': 'Ansjer/file/apns_pem/customizedb-dev.pem',
  40. },
  41. 'com.ansjer.customizeda': {
  42. 'pem_path': 'Ansjer/file/apns_pem/customizeda-dev.pem',
  43. },
  44. 'com.ansjer.zccloud': {
  45. 'pem_path': 'Ansjer/file/apns_pem/zccloud-dev.pem',
  46. },
  47. 'com.ansjer.accloud': {
  48. 'pem_path': 'Ansjer/file/apns_pem/accloud-dev.pem',
  49. },
  50. 'com.ansjer.customizede': {
  51. 'pem_path': 'Ansjer/file/apns_pem/ZhouShi-dev.pem',
  52. },
  53. }
  54. BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
  55. APNS_MODE = 'dev'
  56. TUTK_PUSH_DOMAIN = 'http://push.iotcplatform.com/tpns'
  57. # aws api key
  58. AWS_ARN_S3 = 'arn:aws-cn:s3'
  59. REGION_NAME = 'cn-northwest-1'
  60. ACCESS_KEY_ID = 'AKIA2MMWBR4DSFG67DTG'
  61. SECRET_ACCESS_KEY = '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'
  62. # 存储桶名
  63. AVATAR_BUCKET = 'avatar-cn' # 头像存储桶
  64. LOG_BUCKET = 'ansjer-statres' # 日志存储桶