lrf402788946 4 år sedan
förälder
incheckning
7a9d4568ae
1 ändrade filer med 50 tillägg och 0 borttagningar
  1. 50 0
      config/config.prod.js

+ 50 - 0
config/config.prod.js

@@ -0,0 +1,50 @@
+'use strict';
+
+module.exports = () => {
+  const config = (exports = {});
+
+  config.logger = {
+    level: 'DEBUG',
+    consoleLevel: 'DEBUG',
+  };
+  // 服务器发布路径
+  config.baseUrl = 'http://jytz.jilinjobs.cn';
+
+
+  // mongoose config
+  config.mongoose = {
+    url: 'mongodb://127.0.0.1:27017/train',
+    options: {
+      user: 'admin',
+      pass: 'admin',
+      authSource: 'admin',
+      useUnifiedTopology: true,
+      useNewUrlParser: true,
+      useCreateIndex: true,
+    },
+  };
+
+  // mq配置
+  config.amqp = {
+    client: {
+      hostname: '127.0.0.1',
+      username: 'visit',
+      password: 'visit',
+      vhost: 'train',
+    },
+    app: true,
+    agent: true,
+  };
+
+  // redis config
+  config.redis = {
+    client: {
+      port: 6379, // Redis port
+      host: '127.0.0.1', // Redis host
+      password: 123456,
+      db: 0,
+    },
+  };
+
+  return config;
+};