|
@@ -1,39 +1,43 @@
|
|
|
-'use strict';
|
|
|
-
|
|
|
-module.exports = () => {
|
|
|
- const config = (exports = {});
|
|
|
-
|
|
|
- config.logger = {
|
|
|
-
|
|
|
-
|
|
|
- };
|
|
|
-
|
|
|
-
|
|
|
- config.mongoose = {
|
|
|
- url: 'mongodb://127.0.0.1:27017/servicezhwl',
|
|
|
- options: {
|
|
|
- user: 'admin',
|
|
|
- pass: 'admin',
|
|
|
- authSource: 'admin',
|
|
|
- useUnifiedTopology: true,
|
|
|
- useNewUrlParser: true,
|
|
|
- useCreateIndex: true,
|
|
|
- },
|
|
|
- };
|
|
|
-
|
|
|
- config.redis = {
|
|
|
- client: {
|
|
|
- port: 6379,
|
|
|
- host: '127.0.0.1',
|
|
|
- password: 123456,
|
|
|
- db: 0,
|
|
|
- },
|
|
|
- };
|
|
|
-
|
|
|
- config.project = {
|
|
|
- userAuth: 'http://127.0.0.1:4000/api/role/auth',
|
|
|
- mission: 'http://127.0.0.1:4001/api/mission',
|
|
|
- };
|
|
|
-
|
|
|
- return config;
|
|
|
-};
|
|
|
+'use strict';
|
|
|
+
|
|
|
+module.exports = () => {
|
|
|
+ const config = (exports = {});
|
|
|
+
|
|
|
+ config.logger = {
|
|
|
+
|
|
|
+
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
+ config.mongoose = {
|
|
|
+ url: 'mongodb://127.0.0.1:27017/servicezhwl',
|
|
|
+ options: {
|
|
|
+ user: 'admin',
|
|
|
+ pass: 'admin',
|
|
|
+ authSource: 'admin',
|
|
|
+ useUnifiedTopology: true,
|
|
|
+ useNewUrlParser: true,
|
|
|
+ useCreateIndex: true,
|
|
|
+ },
|
|
|
+ };
|
|
|
+
|
|
|
+ config.redis = {
|
|
|
+ client: {
|
|
|
+ port: 6379,
|
|
|
+ host: '127.0.0.1',
|
|
|
+ password: 123456,
|
|
|
+ db: 0,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ config.cluster = {
|
|
|
+ listen: {
|
|
|
+ port: 7009,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ config.project = {
|
|
|
+ userAuth: 'http://127.0.0.1:4000/api/role/auth',
|
|
|
+ mission: 'http://127.0.0.1:4001/api/mission',
|
|
|
+ };
|
|
|
+
|
|
|
+ return config;
|
|
|
+};
|