浏览代码

配置分离

laiguoran 3 年之前
父节点
当前提交
a50e79d4a1
共有 4 个文件被更改,包括 59 次插入2 次删除
  1. 2 2
      config/config.default.js
  2. 19 0
      config/config.remoteqa.js
  3. 19 0
      config/config.remoteuat.js
  4. 19 0
      config/config.uat.js

+ 2 - 2
config/config.default.js

@@ -208,7 +208,7 @@ module.exports = appInfo => {
                 bucket: 'measure-sign-pdf',
                 bucket: 'measure-sign-pdf',
             },
             },
             fujian: {
             fujian: {
-                bucket: 'jiliang-qa',
+                bucket: 'jiliang-saas',
             },
             },
         },
         },
         default: {
         default: {
@@ -219,7 +219,7 @@ module.exports = appInfo => {
         },
         },
     };
     };
 
 
-    config.fujianOssPath = 'https://jiliang-qa.smartcost.com.cn/';
+    config.fujianOssPath = 'https://jiliang-saas.smartcost.com.cn/';
 
 
     config.syncUrl = 'https://sync.jl.smartcost.com.cn/';
     config.syncUrl = 'https://sync.jl.smartcost.com.cn/';
 
 

+ 19 - 0
config/config.remoteqa.js

@@ -84,6 +84,25 @@ module.exports = appInfo => {
         disableConsoleAfterReady: false,
         disableConsoleAfterReady: false,
     };
     };
 
 
+    config.oss = {
+        clients: {
+            signPdf: {
+                bucket: 'measure-sign-pdf',
+            },
+            fujian: {
+                bucket: 'jiliang-qa',
+            },
+        },
+        default: {
+            accessKeyId: 'LTAIALMjBHOs9PLA',
+            accessKeySecret: 'HSnULQs87wAJhcziAdyRv3GZ4EYctc',
+            endpoint: 'oss-cn-shenzhen.aliyuncs.com',
+            timeout: '60s',
+        },
+    };
+
+    config.fujianOssPath = 'https://jiliang-qa.smartcost.com.cn/';
+
     config.is_debug = true;
     config.is_debug = true;
 
 
     return config;
     return config;

+ 19 - 0
config/config.remoteuat.js

@@ -54,5 +54,24 @@ module.exports = appInfo => {
         rolling: true, // 每次都更新session有效期
         rolling: true, // 每次都更新session有效期
     };
     };
 
 
+    config.oss = {
+        clients: {
+            signPdf: {
+                bucket: 'measure-sign-pdf',
+            },
+            fujian: {
+                bucket: 'jiliang-qa',
+            },
+        },
+        default: {
+            accessKeyId: 'LTAIALMjBHOs9PLA',
+            accessKeySecret: 'HSnULQs87wAJhcziAdyRv3GZ4EYctc',
+            endpoint: 'oss-cn-shenzhen.aliyuncs.com',
+            timeout: '60s',
+        },
+    };
+
+    config.fujianOssPath = 'https://jiliang-qa.smartcost.com.cn/';
+
     return config;
     return config;
 };
 };

+ 19 - 0
config/config.uat.js

@@ -59,6 +59,25 @@ module.exports = appInfo => {
         appsecret: 'ca7c0dbd9e94dc3b1c3b0e73865743f4',
         appsecret: 'ca7c0dbd9e94dc3b1c3b0e73865743f4',
     };
     };
 
 
+    config.oss = {
+        clients: {
+            signPdf: {
+                bucket: 'measure-sign-pdf',
+            },
+            fujian: {
+                bucket: 'jiliang-qa',
+            },
+        },
+        default: {
+            accessKeyId: 'LTAIALMjBHOs9PLA',
+            accessKeySecret: 'HSnULQs87wAJhcziAdyRv3GZ4EYctc',
+            endpoint: 'oss-cn-shenzhen.aliyuncs.com',
+            timeout: '60s',
+        },
+    };
+
+    config.fujianOssPath = 'https://jiliang-qa.smartcost.com.cn/';
+
     config.syncUrl = 'http://sync.jluat.smartcost.com.cn/';
     config.syncUrl = 'http://sync.jluat.smartcost.com.cn/';
 
 
     return config;
     return config;