-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
30 lines (30 loc) · 966 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
module.exports = {
logLevel: process.env.LOG_LEVEL || 'info',
interval: parseInt(process.env.INTERVAL, 10),
s3: {
region: process.env.S3_REGION || 'eu-west-2',
accessKey: process.env.S3_ACCESS_KEY,
secret: process.env.S3_SECRET,
bucket: process.env.S3_BUCKET,
kms: process.env.S3_KMS_KEY_ID,
localstackUrl: process.env.S3_LOCALSTACK_URL
},
db: {
database: process.env.DATABASE_NAME || 'asl',
host: process.env.DATABASE_HOST,
password: process.env.DATABASE_PASSWORD || 'test-password',
port: process.env.DATABASE_PORT,
username: process.env.DATABASE_USERNAME || 'postgres'
},
auth: {
realm: process.env.KEYCLOAK_REALM,
url: process.env.KEYCLOAK_URL,
client: process.env.KEYCLOAK_CLIENT,
secret: process.env.KEYCLOAK_SECRET,
username: process.env.KEYCLOAK_USERNAME || 'data-exports',
password: process.env.KEYCLOAK_PASSWORD
},
metrics: {
url: process.env.METRICS_SERVICE
}
};