-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathconfig.js
33 lines (28 loc) · 900 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
'use strict';
/**
* Global config settings.
* (C) 2015 Diego Lafuente.
*/
// requires
var Log = require('log');
// globals
exports.logLevel = 'info';
var log = new Log(exports.logLevel);
exports.limit = 100;
exports.expressPort = 8080;
exports.packagesCollection = 'packages';
exports.pendingCollection = 'pending';
exports.mongoConnection = 'mongodb://localhost/quality?autoReconnect=true&connectTimeoutMS=5000';
exports.testMongoConnection = 'mongodb://localhost/qualitytest?autoReconnect=true&connectTimeoutMS=5000';
exports.githubToken = '';
exports.githubTokenUpdate = '';
exports.githubApiMaxCallsReachedError = 'MAX_GITHUB_API_CALLS_REACHED';
exports.packageExpiration = 3600;
try {
var localConfig = require('./local-config.js');
for (var key in localConfig) {
exports[key] = localConfig[key];
}
} catch(exception) {
log.notice('local-config.js not found');
}