-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.js
44 lines (40 loc) · 1.05 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
'use strict';
process.title = 'gro';
/* eslint no-process-env: 0 */
module.exports = {
env: process.env.NODE_ENV,
PRETTY_DATE_FORMAT: 'Do MMMM YYYY',
dateTimeFormat: 'DD-MM-YYYY, hh:mma',
redis: {
port: process.env.REDIS_PORT,
host: process.env.REDIS_HOST,
password: process.env.REDIS_PASSWORD
},
survey: {
urls: {
root: 'https://eforms.homeoffice.gov.uk/outreach/Feedback.ofml'
}
},
email: {
caseworker: process.env.CASEWORKER_EMAIL,
notifyApiKey: process.env.NOTIFY_KEY,
notifyTemplate: process.env.NOTIFY_TEMPLATE,
applicant: 'email-text'
},
hosts: {
acceptanceTests: process.env.ACCEPTANCE_HOST_NAME || `http://localhost:${process.env.PORT || 8080}`
},
ga: {
tagId: process.env.GA_TAG
},
postcode: {
hostname: process.env.NODE_ENV === 'ci' ?
`http://${process.env.LISTEN_HOST}:${process.env.PORT}/api/postcode-test` :
process.env.POSTCODE_HOST,
authorization: process.env.POSTCODE_AUTH,
addresses: {
path: '/addresses',
param: 'postcode'
}
}
};