12345678910111213141516171819202122232425262728293031 |
- '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 + '_1517455121740_7922';
- // add your config here
- // config.middleware = [];
- config.errorMongo = {
- details: true,
- };
- config.errorHanler = {
- details: true,
- };
- // mongoose config
- config.mongoose = {
- url: 'mongodb://localhost:27017/platform',
- options: {
- user: 'root',
- pass: 'Ziyouyanfa#@!',
- authSource: 'admin',
- useNewUrlParser: true,
- useCreateIndex: true,
- },
- };
- return config;
- };
|