-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
41 lines (35 loc) · 1.51 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
module.exports = function(env) {
const vcap_services = JSON.parse(env.VCAP_SERVICES)
const vcap_application = JSON.parse(env.VCAP_APPLICATION)
return {
PORT: 8055,
PUBLIC_URL: `https://${ vcap_application.uris[0] }`,
LOG_LEVEL: "info",
LOG_STYLE: "pretty",
KEY: vcap_application.application_id,
SECRET: vcap_application.application_version,
DB_CLIENT: "pg",
DB_HOST: vcap_services['aws-rds'][0].credentials.host,
DB_PORT: vcap_services['aws-rds'][0].credentials.port,
DB_DATABASE: vcap_services['aws-rds'][0].credentials.name,
DB_USER: vcap_services['aws-rds'][0].credentials.username,
DB_PASSWORD: vcap_services['aws-rds'][0].credentials.password,
STORAGE_LOCATIONS: "aws",
STORAGE_AWS_DRIVER: "s3",
STORAGE_AWS_KEY: vcap_services['s3'][0].credentials.access_key_id,
STORAGE_AWS_SECRET: vcap_services['s3'][0].credentials.secret_access_key,
STORAGE_AWS_ENDPOINT: vcap_services['s3'][0].credentials.endpoint,
STORAGE_AWS_BUCKET: vcap_services['s3'][0].credentials.bucket,
STORAGE_AWS_REGION: vcap_services['s3'][0].credentials.region,
// CACHE_ENABLED: true,
// CACHE_STORE: "redis",
// CACHE_REDIS: "redis://cache:6379",
CACHE_AUTO_PURGE: true,
ADMIN_EMAIL: `${ vcap_application.rganization_name }@onrr.gov`,
ADMIN_PASSWORD: vcap_application.organization_id,
EMAIL_SENDMAIL_NEW_LINE: "unix",
EMAIL_SENDMAIL_PATH: "/usr/sbin/sendmail",
EMAIL_FROM: "[email protected]",
EMAIL_TRANSPORT: "sendmail"
}
};