12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 'use strict';
- module.exports = () => {
- const config = exports = {};
- config.logger = {
- // level: 'DEBUG',
- // consoleLevel: 'DEBUG',
- };
- config.mongoose = {
- url: 'mongodb://localhost:27017/platform',
- options: {
- 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: 'platform',
- },
- 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;
- };
|