-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.js
48 lines (47 loc) · 1.56 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
'use strict';
/* eslint no-process-env: 0*/
/* eslint no-inline-comments: 0*/
/* eslint camelcase: 0*/
module.exports = {
env: process.env.NODE_ENV,
port: process.env.PORT,
listen_host: process.env.LISTEN_HOST,
gaTag: process.env.GA_TAG || false,
session: {
secret: process.env.SESSION_SECRET,
ttl: process.env.SESSION_TTL
},
redis: {
password: process.env.REDIS_PASSWORD
},
email: {
caseworker: {
error: process.env.CASEWORKER_ERROR_EMAIL,
'error-triage': process.env.CASEWORKER_ERROR_TRIAGE_EMAIL,
'lost-or-stolen-uk': process.env.CASEWORKER_LOSTSTOLEN_EMAIL,
'lost-or-stolen-abroad': process.env.CASEWORKER_LOSTSTOLEN_EMAIL,
delivery: process.env.CASEWORKER_DELIVERY_EMAIL,
collection: process.env.CASEWORKER_COLLECTION_EMAIL,
'someone-else': process.env.CASEWORKER_SOMEONEELSE_EMAIL
},
'integration-email-recipient': process.env.INTEGRATION_EMAIL_RECIPIENT,
port: process.env.EMAIL_PORT,
host: process.env.EMAIL_HOST,
auth: {
user: process.env.SMTP_USER,
pass: process.env.SMTP_PASSWORD
},
aws: {
region: process.env.AWS_REGION,
accessKeyId: process.env.AWS_USER,
secretAccessKey: process.env.AWS_PASSWORD
},
from: process.env.FROM_ADDRESS,
ignoreTLS: process.env.EMAIL_IGNORE_TLS === 'true',
secure: process.env.EMAIL_SECURE === 'true'
},
hosts: {
acceptanceTests: process.env.ACCEPTANCE_HOST_NAME || `http://localhost:${process.env.PORT || 8080}`
},
govukLandingPageUrl: new URL('https://www.gov.uk/biometric-residence-permits')
};