forked from Betisman/karma-mongo2postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.js
78 lines (78 loc) · 1.87 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,
},
mongo: {
connectionString: process.env.MONGODB_CONNECTIONSTRING,
},
store: {
databaseName: 'kaas-prod',
},
pg: {
connection: {
user: process.env.POSTGRES_USER || 'postgres',
database: process.env.POSTGRES_DB || 'postgres',
password: process.env.POSTGRES_PASSWORD || 'password',
host: process.env.POSTGRES_HOST || 'localhost',
port: process.env.POSTGRES_PORT || 5432,
max: 10,
migrations: [{ directory: 'sql/migrations', filter: '\\.sql$' }],
idleTimeoutMillis: 30000,
sql: 'sql/queries',
ssl: true,
},
},
controller: {
databaseName: 'kaas-prod',
},
routes: {
admin: {
swaggerOptions: {
swaggerDefinition: {
info: {
description: 'Documentation for karma-mongo2postgres',
title: 'karma-mongo2postgres',
version: '1.0.0',
},
host: process.env.SERVICE_ENV || 'localhost:4000',
basePath: '/v1',
produces: ['application/json'],
schemes: ['http'],
securityDefinitions: {
JWT: {
type: 'apiKey',
in: 'header',
name: 'Authorization',
description: '',
},
},
},
},
},
},
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'],
},
};