forked from UKHomeOffice/asl-internal-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
33 lines (33 loc) · 974 Bytes
/
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
module.exports = {
log: {
level: process.env.LOG_LEVEL || 'info'
},
port: process.env.PORT || 8080,
api: process.env.API_URL,
metrics: process.env.METRICS_URL,
session: {
secret: process.env.SESSION_SECRET,
host: process.env.REDIS_HOST,
port: process.env.REDIS_PORT,
password: process.env.REDIS_PASSWORD
},
auth: {
realm: process.env.KEYCLOAK_REALM,
url: process.env.KEYCLOAK_URL,
client: process.env.KEYCLOAK_CLIENT,
secret: process.env.KEYCLOAK_SECRET,
profile: process.env.API_URL,
permissions: process.env.PERMISSIONS_SERVICE
},
s3: {
region: process.env.S3_REGION,
accessKey: process.env.S3_ACCESS_KEY,
secret: process.env.S3_SECRET,
bucket: process.env.S3_BUCKET,
localstackUrl: process.env.S3_LOCALSTACK_URL
},
errorEvent: 'asl.error',
verboseErrors: process.env.VERBOSE_ERRORS === 'TRUE',
pdfService: process.env.PDF_SERVICE,
bodySizeLimit: process.env.BODY_SIZE_LIMIT
};