Ver Fonte

生产环境

lrf há 3 anos atrás
pai
commit
9e71a7efcb
1 ficheiros alterados com 37 adições e 0 exclusões
  1. 37 0
      config/config.prod.js

+ 37 - 0
config/config.prod.js

@@ -0,0 +1,37 @@
+'use strict';
+
+module.exports = () => {
+  const config = (exports = {});
+  // 数据库设置
+  config.dbName = 'label-achievement';
+  config.mongoose = {
+    url: `mongodb://localhost:27017/${config.dbName}`,
+    options: {
+      user: 'admin',
+      pass: 'admin',
+      authSource: 'admin',
+      useNewUrlParser: true,
+      useCreateIndex: true,
+    },
+  };
+  // mysql
+  config.mysql = {
+    client: {
+      // host
+      host: 'localhost',
+      // 端口号
+      port: '3306',
+      // 用户名
+      user: 'free1977',
+      // 密码
+      password: '1qaz2wsx',
+      // 数据库名
+      database: 'management_platform',
+    },
+    // 是否加载到 app 上,默认开启
+    app: true,
+    // 是否加载到 agent 上,默认关闭
+    agent: false,
+  };
+  return config;
+};