123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 'use strict';
- module.exports = () => {
- const config = (exports = {});
- config.logger = {
- level: 'DEBUG',
- consoleLevel: 'DEBUG',
- };
- // 服务器发布路径
- config.baseUrl = 'http://broadcast.waityou24.cn';
- // 认证回调地址
- config.authUrl = '/api/visit/auth';
- // mq config
- config.amqp = {
- client: {
- hostname: '127.0.0.1',
- username: 'visit',
- password: 'visit',
- vhost: 'visit',
- },
- app: true,
- agent: true,
- };
- // redis config
- config.redis = {
- client: {
- port: 6379, // Redis port
- host: '127.0.0.1', // Redis host
- password: 123456,
- db: 0,
- },
- };
- config.mongoose = {
- url: 'mongodb://localhost:27017/visit',
- options: {
- // user: 'admin',
- // pass: 'admin',
- // authSource: 'admin',
- // useNewUrlParser: true,
- // useCreateIndex: true,
- // useUnifiedTopology: true,
- },
- };
- return config;
- };
|