forked from MatteoDiPaolo/service-systemic-showcase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.js
78 lines (78 loc) · 1.33 KB
/
default.js
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
module.exports = {
server: {
host: '0.0.0.0',
port: 4000,
},
routes: {
admin: {
swaggerValidator: {
apiDocEndpoint: '/__/docs/api',
validateRequests: true,
validateResponses: true,
validationEndpoint: '/test',
format: 'yaml',
yaml: {
file: './docs/syncapi.yaml',
},
},
},
},
mongodb: {
url: 'mongodb://localhost:27017/',
options: {
poolSize: 5,
useUnifiedTopology: true,
},
},
store: {
databaseName: 'mongodb',
collectionName: 'messages',
},
rabbitmq: {
defaults: {},
vhosts: {
vhost_name: {
connection: {
hostname: '127.0.0.1',
user: 'rabbitmq',
password: 'rabbitmq',
},
exchanges: [],
queues: [
'demo_queue',
],
bindings: [],
subscriptions: {
demo_subscription: {
queue: 'demo_queue',
},
},
publications: {},
},
},
},
logger: {
transport: 'console',
include: [
'tracer',
'timestamp',
'level',
'message',
'error.message',
'error.code',
'error.stack',
'request.url',
'request.headers',
'request.params',
'request.method',
'response.statusCode',
'response.headers',
'response.time',
'process',
'system',
'package.name',
'service',
],
exclude: ['password', 'secret', 'token', 'request.headers.cookie', 'dependencies', 'devDependencies'],
},
};