-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
63 lines (61 loc) · 1.85 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
62
63
'use strict';
/* eslint no-process-env: 0 */
const env = process.env.NODE_ENV || 'production';
module.exports = {
env: env,
dateLocales: 'en-GB',
dateFormat: {
day: 'numeric',
month: 'numeric',
year: 'numeric'
},
govukNotify: {
notifyApiKey: process.env.NOTIFY_KEY,
caseworkerEmail: process.env.CASEWORKER_EMAIL,
userConfirmationTemplateId: process.env.USER_CONFIRMATION_TEMPLATE_ID,
businessConfirmationTemplateId: process.env.BUSINESS_CONFIRMATION_TEMPLATE_ID
},
redis: {
port: process.env.REDIS_PORT || '6379',
host: process.env.REDIS_HOST || '127.0.0.1'
},
upload: {
maxFileSizeInBytes: 25 * 1024 * 1024, // 25MiB in bytes
hostname: process.env.FILE_VAULT_URL,
allowedMimeTypes: [
'image/jpeg',
'image/jpg',
'image/png',
'application/pdf',
'application/msword',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.ms-excel',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
],
documentCategories: {
'company-registration-certificate': {
limit: 1,
limitValidationError: 'company-registration-certificate-limit'
},
'certificate-of-good-conduct': {
limit: 1,
limitValidationError: 'certificate-of-good-conduct-limit'
}
}
},
aws: {
bucket: process.env.AWS_BUCKET,
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
signatureVersion: process.env.AWS_SIGNATURE_VERSION,
kmsKeyId: process.env.AWS_KMS_KEY_ID,
region: process.env.AWS_REGION
},
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
}
};