config.prod.js 960 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. 'use strict';
  2. module.exports = appInfo => {
  3. const config = (exports = {});
  4. // 数据库设置
  5. config.dbName = 'point_shopping-dev';
  6. config.mongoose = {
  7. url: `mongodb://127.0.0.1:27017/${config.dbName}`, // 120.48.146.1 127.0.0.1
  8. options: {
  9. user: 'admin',
  10. pass: 'admin',
  11. authSource: 'admin',
  12. useNewUrlParser: true,
  13. useCreateIndex: true,
  14. useFindAndModify: true,
  15. },
  16. };
  17. // mq设置
  18. config.amqp = {
  19. client: {
  20. hostname: '127.0.0.1',
  21. username: 'tehqDev',
  22. password: 'tehqDev',
  23. vhost: 'tehqDev',
  24. },
  25. app: true,
  26. agent: true,
  27. };
  28. // redis设置
  29. config.redis = {
  30. client: {
  31. port: 6379, // Redis port
  32. host: '127.0.0.1', // Redis host
  33. password: '123456',
  34. db: 2,
  35. },
  36. };
  37. config.emailConfig = {
  38. config: 'free',
  39. };
  40. config.smsConfig = {
  41. config: 'free',
  42. };
  43. config.wxPayConfig = 'pointApp';
  44. return {
  45. ...config,
  46. };
  47. };