-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
65 lines (63 loc) · 1.9 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
64
65
'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: 20,
limitValidationError: 'companyRegistrationCertificateLimit'
},
'certificate-of-good-conduct': {
limit: 20,
limitValidationError: 'certificateOfGoodConductLimit'
}
}
},
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: {
tokenUrl: process.env.KEYCLOAK_TOKEN_URL,
fileVault: {
username: process.env.FILE_VAULT_USERNAME,
password: process.env.FILE_VAULT_PASSWORD,
clientId: process.env.FILE_VAULT_CLIENT_ID,
secret: process.env.FILE_VAULT_CLIENT_SECRET
}
}
};