config.local.js 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. 'use strict';
  2. module.exports = () => {
  3. const config = (exports = {});
  4. config.logger = {
  5. level: 'DEBUG',
  6. consoleLevel: 'DEBUG',
  7. };
  8. // 服务器发布路径
  9. config.baseUrl = 'http://broadcast.waityou24.cn';
  10. // 认证回调地址
  11. config.authUrl = '/api/visit/auth';
  12. // mq config
  13. config.amqp = {
  14. client: {
  15. hostname: '127.0.0.1',
  16. username: 'visit',
  17. password: 'visit',
  18. vhost: 'visit',
  19. },
  20. app: true,
  21. agent: true,
  22. };
  23. // redis config
  24. config.redis = {
  25. client: {
  26. port: 6379, // Redis port
  27. host: '127.0.0.1', // Redis host
  28. password: 123456,
  29. db: 0,
  30. },
  31. };
  32. config.mongoose = {
  33. url: 'mongodb://localhost:27017/visit',
  34. options: {
  35. // user: 'admin',
  36. // pass: 'admin',
  37. // authSource: 'admin',
  38. // useNewUrlParser: true,
  39. // useCreateIndex: true,
  40. // useUnifiedTopology: true,
  41. },
  42. };
  43. return config;
  44. };