|
@@ -1,23 +1,50 @@
|
|
-#!/usr/bin/env python3
|
|
|
|
-# -*- coding: utf-8 -*-
|
|
|
|
-
|
|
|
|
|
|
+"""
|
|
|
|
+独立于config.py的配置文件
|
|
|
|
+"""
|
|
import os
|
|
import os
|
|
|
|
|
|
-# 配置信息
|
|
|
|
-CONFIG_INFO = 'test'
|
|
|
|
|
|
+# 配置信息,配置模式和根路径
|
|
|
|
+CONFIG_INFO = 'local'
|
|
|
|
+SERVER_TYPE = os.environ.get('DJANGO_SETTINGS_MODULE')
|
|
|
|
+BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
+
|
|
|
|
+"""
|
|
|
|
+AWS相关
|
|
|
|
+"""
|
|
|
|
+# ======================================================================================================================
|
|
|
|
+# aws api key
|
|
|
|
+AWS_ARN_S3 = 'arn:aws-cn:s3'
|
|
|
|
+REGION_NAME = 'cn-northwest-1'
|
|
|
|
+ACCESS_KEY_ID = 'AKIA2MMWBR4DSFG67DTG'
|
|
|
|
+SECRET_ACCESS_KEY = 'aI9gxcAKPmiGgPy9axrtFKzjYGbvpuytEX4xWweL'
|
|
|
|
+
|
|
|
|
+# 存储桶
|
|
|
|
+PUSH_BUCKET = 'push' # 推送存储桶
|
|
|
|
+PUSH_INACCURATE_BUCKET = 'push-inaccurate' # 推送不准确存储桶
|
|
|
|
+AVATAR_BUCKET = 'avatar-cn' # 头像存储桶
|
|
|
|
+LOG_BUCKET = 'ansjer-statres' # 日志存储桶
|
|
|
|
+
|
|
|
|
+# redis节点
|
|
|
|
+SERVER_HOST = '127.0.0.1'
|
|
|
|
+PUSH_REDIS_ADDRESS = '127.0.0.1'
|
|
|
|
+# ======================================================================================================================
|
|
|
|
+
|
|
|
|
+# 域名
|
|
|
|
|
|
OAUTH_ACCESS_TOKEN_SECRET = 'local_a+jbgnw%@1%zy^=@dn62%'
|
|
OAUTH_ACCESS_TOKEN_SECRET = 'local_a+jbgnw%@1%zy^=@dn62%'
|
|
OAUTH_REFRESH_TOKEN_SECRET = 'local_r+jbgnw%@1%zy^=@dn62%'
|
|
OAUTH_REFRESH_TOKEN_SECRET = 'local_r+jbgnw%@1%zy^=@dn62%'
|
|
|
|
|
|
-NGINX_RTMP_STAT = 'http://127.0.0.1:8000/stat'
|
|
|
|
|
|
+DOMAIN_HOST = '127.0.0.1'
|
|
SERVER_DOMAIN = 'http://127.0.0.1:8000/'
|
|
SERVER_DOMAIN = 'http://127.0.0.1:8000/'
|
|
SERVER_DOMAIN_SSL = 'http://127.0.0.1:8000/'
|
|
SERVER_DOMAIN_SSL = 'http://127.0.0.1:8000/'
|
|
-SERVER_HOST = '127.0.0.1'
|
|
|
|
-DOMAIN_HOST = '127.0.0.1'
|
|
|
|
-PUSH_REDIS_ADDRESS = '127.0.0.1'
|
|
|
|
-# SERVER_HOST = '127.0.0.1'
|
|
|
|
-# DOMAIN_HOST = '127.0.0.1'
|
|
|
|
-RTMP_PUSH_URL = 'rtmp://127.0.0.1:1935/hls'
|
|
|
|
|
|
+NGINX_RTMP_STAT = 'http://127.0.0.1:8000/stat'
|
|
|
|
+DETECT_PUSH_DOMAIN = 'http://test.push.dvema.com/'
|
|
|
|
+DETECT_PUSH_DOMAINS = 'https://test.push.dvema.com/'
|
|
|
|
+DETECT_PUSH_DOMAIN_JIUAN = 'http://jiuan.push.dvema.com/'
|
|
|
|
+DETECT_PUSH_DOMAINS_JIUAN = 'https://jiuan.push.dvema.com/'
|
|
|
|
+TUTK_PUSH_DOMAIN = 'http://push.iotcplatform.com/tpns'
|
|
|
|
+
|
|
|
|
+# PayPal
|
|
PAYPAL_CRD = {
|
|
PAYPAL_CRD = {
|
|
"mode": "sandbox", # sandbox or live
|
|
"mode": "sandbox", # sandbox or live
|
|
"client_id": "AVLoQVq3xHZ6FrF4mxHwlCPgVBAw4Fw5RtMkuxmYd23SkUTIY643n2g3KdK-Al8wV05I28lza5uoQbAA",
|
|
"client_id": "AVLoQVq3xHZ6FrF4mxHwlCPgVBAw4Fw5RtMkuxmYd23SkUTIY643n2g3KdK-Al8wV05I28lza5uoQbAA",
|
|
@@ -26,14 +53,11 @@ PAYPAL_CRD = {
|
|
PAYPAL_WEB_HOOK_ID = '6TS30758D98835230'
|
|
PAYPAL_WEB_HOOK_ID = '6TS30758D98835230'
|
|
PAYPAL_WEB_HOOK_ID_TWO = '2BH56575UJ9324151'
|
|
PAYPAL_WEB_HOOK_ID_TWO = '2BH56575UJ9324151'
|
|
|
|
|
|
-DETECT_PUSH_DOMAIN = 'http://test.push.dvema.com/'
|
|
|
|
-DETECT_PUSH_DOMAINS = 'https://test.push.dvema.com/'
|
|
|
|
-DETECT_PUSH_DOMAIN_JIUAN = 'http://jiuan.push.dvema.com/'
|
|
|
|
-DETECT_PUSH_DOMAINS_JIUAN = 'https://jiuan.push.dvema.com/'
|
|
|
|
# 数据库dyanamo品牌日志数据库
|
|
# 数据库dyanamo品牌日志数据库
|
|
USER_BRAND = 'test_user_brand'
|
|
USER_BRAND = 'test_user_brand'
|
|
USER_BRAND_ALL = 'test_user_brand_all'
|
|
USER_BRAND_ALL = 'test_user_brand_all'
|
|
|
|
|
|
|
|
+APNS_MODE = 'dev'
|
|
|
|
|
|
APNS_CONFIG = {
|
|
APNS_CONFIG = {
|
|
'com.ansjer.loocamccloud': {
|
|
'com.ansjer.loocamccloud': {
|
|
@@ -58,16 +82,3 @@ APNS_CONFIG = {
|
|
'pem_path': 'Ansjer/file/apns_pem/ZhouShi-dev.pem',
|
|
'pem_path': 'Ansjer/file/apns_pem/ZhouShi-dev.pem',
|
|
},
|
|
},
|
|
}
|
|
}
|
|
-BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
-APNS_MODE = 'dev'
|
|
|
|
-TUTK_PUSH_DOMAIN = 'http://push.iotcplatform.com/tpns'
|
|
|
|
-
|
|
|
|
-# aws api key
|
|
|
|
-AWS_ARN_S3 = 'arn:aws-cn:s3'
|
|
|
|
-REGION_NAME = 'cn-northwest-1'
|
|
|
|
-ACCESS_KEY_ID = 'AKIA2MMWBR4DSFG67DTG'
|
|
|
|
-SECRET_ACCESS_KEY = 'aI9gxcAKPmiGgPy9axrtFKzjYGbvpuytEX4xWweL'
|
|
|
|
-
|
|
|
|
-# 存储桶名
|
|
|
|
-AVATAR_BUCKET = 'avatar-cn' # 头像存储桶
|
|
|
|
-LOG_BUCKET = 'ansjer-statres' # 日志存储桶
|
|
|