config_local.py 2.3 KB

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