-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.js
61 lines (59 loc) · 1.97 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';
/* eslint no-process-env: 0 */
const env = process.env.NODE_ENV || 'production';
const localhost = () => `${process.env.LISTEN_HOST || '0.0.0.0'}:${process.env.PORT || 8080}`;
module.exports = {
env: env,
upload: {
skipEmail: env === 'production' ? '' : '[email protected]',
maxfilesize: '100mb',
hostname: (!env || env === 'ci') ?
`http://${localhost()}/api/file-upload` :
process.env.FILE_VAULT_URL
},
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
},
govukNotify: {
notifyApiKey: process.env.NOTIFY_KEY,
templateMuseum: process.env.TEMPLATE_MUSEUM,
templateSection5: process.env.TEMPLATE_SECTION5,
templateShootingClub: process.env.TEMPLATE_SHOOTING_CLUB,
templateSupportingDocuments: process.env.TEMPLATE_SUPPORTING_DOCUMENTS,
emailReplyToDefault: process.env.EMAIL_REPLY_TO_DEFAULT,
emailReplyToFirearms: process.env.EMAIL_REPLY_TO_FIREARMS
},
email: {
emailerFallback: true,
from: process.env.FROM_ADDRESS,
transport: process.env.EMAIL_TRANSPORT,
transportOptions: {
accessKeyId: process.env.HOF_SES_USER || process.env.AWS_USER,
secretAccessKey: process.env.HOF_SES_PASSWORD || process.env.AWS_PASSWORD
}
},
hosts: {
acceptanceTests: process.env.ACCEPTANCE_HOST_NAME || `http://localhost:${process.env.PORT || 8080}`
},
redis: {
password: process.env.REDIS_PASSWORD
},
icasework: {
url: process.env.ICASEWORK_URL,
dbName: process.env.ICASEWORK_DB,
createpath: '/createcase',
uploadpath: '/uploaddocuments',
getcasepath: '/getcasedetails',
key: process.env.ICASEWORK_KEY,
secret: process.env.ICASEWORK_SECRET,
timeout: process.env.ICASEWORK_TIMEOUT || 60000
},
feedbackUrl: process.env.FEEDBACK_URL,
pdf: {
url: process.env.PDF_CONVERTER_URL
}
};