12345678910111213141516171819202122232425262728293031 |
- 'use strict';
- module.exports = () => {
- const config = (exports = {});
- config.dbServer = {
- ip: '127.0.0.1',
- port: '6101',
- };
- config.dbName = 'baoan-exam';
- config.mongoose = {
- url: `mongodb://localhost:27017/${config.dbName}`,
- options: {
- user: 'c##baoandba',
- pass: 'baoan2021',
- authSource: 'admin',
- useNewUrlParser: true,
- useCreateIndex: true,
- },
- };
- config.filesConfig = {
- root_path: '/usr/workspace/server/service-file/upload',
- project: 'exam',
- export_dir: 'export',
- };
- // 服务设置
- config.middleServer = {
- ip: '127.0.0.1',
- port: '6101',
- };
- return config;
- };
|