/
default.json
153 lines (153 loc) · 3.1 KB
/
default.json
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"bindAddress": "0.0.0.0",
"mongo": {
"url": "mongodb://localhost/openhim",
"atnaUrl": "mongodb://localhost/openhim",
"connectionOptions": {},
"openHIMApiReadPreference": "primaryPreferred",
"openHIMApiWriteConcern": 1,
"openHIMApiReadConcern": "local"
},
"logger": {
"level": "info",
"logToDB": true,
"capDBLogs": true,
"capSize": 10000000
},
"mongoLogger": {
"options": {
"w": 0,
"useNewUrlParser": true
}
},
"router": {
"externalHostname": "localhost",
"httpPort": 5001,
"httpsPort": 5000,
"timeout": 60000
},
"bodyCull":{
"enabled":true,
"pollPeriodMins": 60
},
"api": {
"enabled": true,
"protocol": "https",
"port": 8080,
"authWindowSeconds": 10,
"maxBodiesSizeMB": 15,
"maxPayloadSizeMB": 50,
"truncateSize": 15000,
"truncateAppend": "\n[truncated ...]",
"authenticationTypes": ["token"]
},
"rerun": {
"httpPort": 7786,
"host": "localhost",
"processor": {
"enabled": true,
"pollPeriodMillis": 2000
}
},
"tcpAdapter": {
"httpReceiver": {
"httpPort": 7787,
"host": "localhost"
}
},
"polling": {
"enabled": true,
"pollingPort": 7788,
"host": "localhost"
},
"authentication": {
"enableMutualTLSAuthentication": true,
"enableBasicAuthentication": true,
"enableCustomTokenAuthentication": false,
"enableJWTAuthentication": false,
"jwt": {
"secretOrPublicKey": "",
"algorithms": "",
"audience": "",
"issuer": ""
}
},
"email": {
"fromAddress": "address@example.com",
"nodemailer": {
"service": "Gmail",
"auth": {
"user": "user@gmail.com",
"pass": "password"
}
}
},
"smsGateway": {
"provider": "clickatell",
"config": {
"user": "user",
"pass": "pass",
"apiID": "apiID"
}
},
"alerts": {
"enableAlerts": true,
"pollPeriodMinutes": 1,
"himInstance": "Local OpenHIM",
"consoleURL": "http://localhost:9000"
},
"reports": {
"enableReports": true,
"dailyReportAt": "0 7 * * *",
"weeklyReportAt": "0 7 * * 1",
"utcOffset": null
},
"events": {
"enableTSNormalization": true
},
"newUserExpiry": {
"duration": 7,
"durationType": "days"
},
"userPasswordResetExpiry": {
"duration": 1,
"durationType": "hours"
},
"auditing": {
"servers": {
"udp": {
"enabled": false,
"port": 5050
},
"tls": {
"enabled": false,
"port": 5051
},
"tcp": {
"enabled": false,
"port": 5052
}
},
"auditEvents": {
"interface": "internal",
"host": "localhost",
"port": 5051,
"auditSourceID": "OpenHIM"
}
},
"caching": {
"enabled": true,
"refreshMillis": 1000
},
"tlsClientLookup": {
"type": "strict"
},
"agenda": {
"startupDelay": 500
},
"certificateManagement": {
"watchFSForCert": false,
"certPath": "/etc/letsencrypt/live/openhim.jembi.org/cert.pem",
"keyPath": "/etc/letsencrypt/live/openhim.jembi.org/privkey.pem"
}
}