Explorar o código

Merge branch 'master' of http://git.cc-lotus.info/service-platform/service-live

lrf402788946 %!s(int64=5) %!d(string=hai) anos
pai
achega
884c5a2776
Modificáronse 2 ficheiros con 31 adicións e 22 borrados
  1. 14 16
      config/config.default.js
  2. 17 6
      config/config.local.js

+ 14 - 16
config/config.default.js

@@ -7,14 +7,13 @@
  */
 module.exports = appInfo => {
   /**
-                               * built-in config
-                               * @type {Egg.EggAppConfig}
-                               **/
+   * built-in config
+   * @type {Egg.EggAppConfig}
+   **/
   const config = (exports = {});
 
   // use for cookie sign key, should change to your own and keep security
-  config.keys =
-                                appInfo.name + '_1579225760252_7743';
+  config.keys = appInfo.name + '_1579225760252_7743';
 
   // add your middleware config here
   config.middleware = [];
@@ -27,28 +26,27 @@ module.exports = appInfo => {
   // add your config here
   config.cluster = {
     listen: {
-      port: 9005,
+      port: 9009,
     },
   };
 
   config.mongoose = {
     url: 'mongodb://localhost:27017/platform',
     options: {
-      // user: 'demo',
-      // pass: 'demo',
-      // authSource: 'admin',
-      // useNewUrlParser: true,
-      // useCreateIndex: true,
-      // useUnifiedTopology: true,
+      user: 'admin',
+      pass: 'admin',
+      authSource: 'admin',
+      useNewUrlParser: true,
+      useCreateIndex: true,
+      useUnifiedTopology: true,
     },
   };
-  // mq config
   config.amqp = {
     client: {
       hostname: '127.0.0.1',
-      username: 'live',
-      password: '1qaz2wsx',
-      vhost: 'live',
+      username: 'visit',
+      password: 'visit',
+      vhost: 'visit',
     },
     app: true,
     agent: true,

+ 17 - 6
config/config.local.js

@@ -11,14 +11,25 @@ module.exports = () => {
   config.mongoose = {
     url: 'mongodb://localhost:27017/platform',
     options: {
-      // user: 'demo',
-      // pass: 'demo',
-      // authSource: 'admin',
-      // useNewUrlParser: true,
-      // useCreateIndex: true,
-      // useUnifiedTopology: true,
+      user: 'admin',
+      pass: 'admin',
+      authSource: 'admin',
+      useNewUrlParser: true,
+      useCreateIndex: true,
+      useUnifiedTopology: true,
     },
   };
 
+  config.amqp = {
+    client: {
+      hostname: '127.0.0.1',
+      username: 'visit',
+      password: 'visit',
+      vhost: 'visit',
+    },
+    app: true,
+    agent: true,
+  };
+
   return config;
 };