ソースを参照

修改token的OAUTH_ACCESS_TOKEN_TIME,OAUTH_REFRESH_TOKEN_SECRET的定义值

pzb 5 年 前
コミット
70fb79c729
3 ファイル変更10 行追加0 行削除
  1. 1 0
      Ansjer/config.py
  2. 4 0
      Ansjer/config_local.py
  3. 5 0
      Ansjer/config_test.py

+ 1 - 0
Ansjer/config.py

@@ -39,6 +39,7 @@ OFF_LINE_TIME_DELTA = 5
 # token的secret
 OAUTH_ACCESS_TOKEN_SECRET = 'a+jbgnw%@1%zy^=@dn62%'
 OAUTH_REFRESH_TOKEN_SECRET = 'r+jbgnw%@1%zy^=@dn62%'
+
 # access_token超时
 # OAUTH_ACCESS_TOKEN_TIME = datetime.timedelta(hours=1)
 OAUTH_ACCESS_TOKEN_TIME = datetime.timedelta(days=30)

+ 4 - 0
Ansjer/config_local.py

@@ -11,6 +11,10 @@
 @file: config_local.py
 @Contact: chanjunkai@163.com
 """
+# token的secret
+OAUTH_ACCESS_TOKEN_SECRET = 'a+jbgnw%@1%zy^=@dn62%'
+OAUTH_REFRESH_TOKEN_SECRET = 'r+jbgnw%@1%zy^=@dn62%'
+
 NGINX_RTMP_STAT = 'http://192.168.136.45:8077/stat'
 SERVER_DOMAIN = 'http://192.168.136.45:8077/'
 SERVER_DOMAIN_SSL = 'http://192.168.136.45:8077/'

+ 5 - 0
Ansjer/config_test.py

@@ -15,6 +15,11 @@ NGINX_RTMP_STAT = 'http://test.dvema.com/stat'
 SERVER_DOMAIN = 'http://test.dvema.com/'
 SERVER_DOMAIN_SSL = 'https://test.dvema.com/'
 
+
+# token的secret
+OAUTH_ACCESS_TOKEN_SECRET = 'test_a+jbgnw%@1%zy^=@dn62%'
+OAUTH_REFRESH_TOKEN_SECRET = 'test_r+jbgnw%@1%zy^=@dn62%'
+
 DOMAIN_HOST = 'test.dvema.com'
 SERVER_HOST = 'localhost'
 PAYPAL_CRD = {