12345678910111213141516171819202122232425262728293031323334353637383940 |
- 'use strict';
- module.exports = appInfo => {
- const config = exports = {};
-
- // use for cookie sign key, should change to your own and keep security
- config.keys = appInfo.name + '_1516694643431_7736';
- // add your config here
- // config.middleware = [ ];
- config.errorMongo = {
- details: true,
- };
- config.errorHanler = {
- details: true,
- };
- config.cluster = {
- listen: {
- port: 9002,
- },
- };
- // mongoose config
- config.mongoose = {
- url: 'mongodb://localhost:27018/naf',
- options: {
- // user: 'root',
- // pass: 'cms@cc-lotus',
- // authSource: 'admin',
- // useNewUrlParser: true,
- // useCreateIndex: true,
- },
- };
- config.logger = {
- // level: 'DEBUG',
- consoleLevel: 'DEBUG',
- };
- return config;
- };
|