forked from 18F/analytics-reporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
38 lines (29 loc) · 980 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
34
35
36
37
38
// Set environment variables to configure the application.
module.exports = {
email: process.env.ANALYTICS_REPORT_EMAIL,
key: process.env.ANALYTICS_KEY,
key_file: process.env.ANALYTICS_KEY_PATH,
reports_file: process.env.ANALYTICS_REPORTS_PATH,
debug: (process.env.ANALYTICS_DEBUG ? true : false),
/*
AWS S3 information.
Separately, you need to set AWS_REGION, AWS_ACCESS_KEY_ID, and
AWS_SECRET_ACCESS_KEY. The AWS SDK for Node reads these in automatically.
*/
aws: {
// No trailing slashes
bucket: process.env.AWS_BUCKET,
path: process.env.AWS_BUCKET_PATH,
// HTTP cache time in seconds. Defaults to 0.
cache: process.env.AWS_CACHE_TIME
},
account: {
ids: process.env.ANALYTICS_REPORT_IDS,
// needed for realtime reports which don't include hostname
// leave blank if your view includes hostnames
hostname: process.env.ANALYTICS_HOSTNAME || ""
},
static: {
path: '../analytics.usa.gov/'
}
};