-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
61 lines (59 loc) · 1.77 KB
/
config.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
'use strict';
const env = process.env.NODE_ENV || 'production';
module.exports = {
PRETTY_DATE_FORMAT: 'DD MMMM YYYY',
dateTimeFormat: 'DD MMM YYYY HH:mm:ss',
env: env,
email: {
notifyApiKey: process.env.NOTIFY_KEY,
notifyTemplate: process.env.NOTIFY_TEMPLATE,
caseWorker: process.env.CASEWORKER_EMAIL
},
// TODO: set return URL and mac in env variables
feedback: {
url: 'https://www.hof-feedback.homeoffice.gov.uk',
form: Buffer.from('EPP', 'utf8').toString('hex'),
returnUrl: Buffer.from('', 'utf8').toString('hex'),
mac: ''
},
hosts: {
acceptanceTests: process.env.ACCEPTANCE_HOST_NAME || `http://localhost:${process.env.PORT || 8080}`
},
redis: {
port: process.env.REDIS_PORT || '6379',
host: process.env.REDIS_HOST || '127.0.0.1'
},
keycloak: {
token: process.env.KEYCLOAK_TOKEN_URL,
username: process.env.KEYCLOAK_USERNAME,
password: process.env.KEYCLOAK_PASSWORD,
clientId: process.env.KEYCLOAK_CLIENT_ID,
secret: process.env.KEYCLOAK_SECRET
},
upload: {
maxFileSizeInBytes: 25 * 1000 * 1000, // 25MB in bytes
hostname: process.env.FILE_VAULT_URL,
allowedMimeTypes: [
'image/png',
'image/jpg',
'image/jpeg',
'application/pdf',
'text/plain',
'text/html',
'application/vnd',
'message/rfc822',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.ms-powerpoint',
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/rtf',
'text/csv',
'application/vnd.ms-excel',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/xml'
]
},
sectionDetails: {
totalStepsNew: 20,
totalStepsRenew: 21
}
};