Browse Source

提交qa环境数据

olym 7 years ago
parent
commit
79ca2cb517
1 changed files with 52 additions and 0 deletions
  1. 52 0
      config/config.qa.js

+ 52 - 0
config/config.qa.js

@@ -0,0 +1,52 @@
+'use strict';
+/**
+ * 开发环境相关配置
+ *
+ * @author CaiAoLin
+ * @date 2017/8/29
+ * @version
+ */
+
+module.exports = appInfo => {
+    const config = {};
+    // 数据库配置
+    config.mysql = {
+        client: {
+            // host
+            host: '192.168.1.139',
+            // 端口号
+            port: '3306',
+            // 用户名
+            user: 'root',
+            // 密码
+            password: 'root',
+            // 数据库名
+            database: 'calculation',
+        },
+        // 是否加载到 app 上,默认开启
+        app: true,
+        // 是否加载到 agent 上,默认关闭
+        agent: false,
+    };
+    // 表名前缀
+    config.tablePrefix = 'zh_';
+
+    // redis设置
+    config.redis = {
+        client: {
+            host: '192.168.1.139',
+            port: '6379',
+            password: 'test',
+            db: '0',
+        },
+        agent: true,
+    };
+
+    // geetest验证码key
+    config.geetest = {
+        id: '23c50f6711966f744c93a70167c8e0a4',
+        key: '9b67989994f9def437ea68bb495f0162',
+    };
+
+    return config;
+};