123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- 'use strict';
- const { jwt } = require('./config.secret');
- module.exports = appInfo => {
-
- const config = exports = {};
-
- config.keys = appInfo.name + '_1625713704561_5494';
-
- config.middleware = [];
-
- const userConfig = {
-
- };
- config.cluster = {
- listen: {
- port: 11111,
- },
- };
- config.appName = 'market';
- config.dbName = 'market';
- config.mongoose = {
- url: `mongodb://localhost:27017/${config.dbName}`,
- options: {
-
-
-
-
-
- },
- };
- config.amqp = {
- client: {
- hostname: '127.0.0.1',
- username: 'test',
- password: '123456',
- vhost: 'test',
- },
- app: true,
- agent: true,
- };
- config.jwt = {
- ...jwt,
- expiresIn: '1d',
- issuer: 'market',
- };
- config.redis = {
- client: {
- port: 6379,
- host: '127.0.0.1',
- password: '123456',
- db: 1,
- },
- };
- return {
- ...config,
- ...userConfig,
- };
- };
|