forked from raynaldmo/mlb-db
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.js
24 lines (23 loc) · 891 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
/**
* Created by raynald on 5/18/14.
*/
module.exports = {
development : {
mode : "development",
mongoDbUri : "mongodb://192.168.0.252:27017/mlb",
// HTTP response Cache-Control max-age for static files
maxAgeS: 0, // in ms
// HTTP response Cache-Control max-age for (AJAX) dynamic content
maxAgeD : 0 // in seconds
},
production : {
mode : "production",
// Use this URI to use heroku provisioned mongodb database (runs 2.4.9)
// mongoDbUri : process.env.MONGOLAB_URI,
// Use this URI to use mongodb database directly provisioned by mongolab
// (currently uses mongodb 2.6.2)
mongoDbUri : process.env.MONGOLAB_URI || "mongodb://admin:jr6460*@ds051459.mongolab.com:51459/mlb-db",
maxAgeS : 60 * 60 * 24 * 1000, // in ms
maxAgeD : 60 * 60 * 24 // in seconds
}
};