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