config_local.py 2.7 KB

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