1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| 'use strict';
|
| /**
| * egg-mongo default config
| * @member Config#mongo
| * @property {String} SOME_KEY - some description
| */
| exports.mongo = {
| // Single Instance
| // client: {
| // host: 'localhost',
| // port: 27017,
| // name: 'test',
| // user: 'admin',
| // password: '',
| // },
| // Replica Set
| // client: {
| // host: [ 'host1', 'host2' ],
| // port: [ 'port1', 'port2' ],
| // name: 'test',
| // option: {
| // replicaSet: 'test',
| // },
| // },
| // Multi Instances
| // clients: {
| // foo: {
| // host: 'localhost',
| // port: 27017,
| // name: 'foo',
| // },
| // bar: {
| // host: 'localhost',
| // port: 27017,
| // name: 'bar',
| // },
| // },
| };
|
|