-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathconfig.js
32 lines (23 loc) · 912 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
/* The Base Configuration file and startup options
ONLY change these if you want them changed across ALL installations.
(i.e., this file should be in version control). You should put specific
deploayment options under "development.js" or "production.js", etc under
the root folder.
Those files should look like:
exports.update = function(config) {
config.port = 1337;
};
*/
exports.configure = function() {
this.port = 3000;
this.cookieSecret = "whatever1234";
this.awayTimeout = 60000 * 5; // five minutes
this.roomTimeout = 60000 * 20; // twenty minutes
this.checkInterval = 10000; // ten seconds
this.transports = [ 'htmlfile', 'xhr-multipart', 'xhr-polling',
'jsonp-polling' ];
// Configure deployment settings
if (process.env.NODE_ENV)
require("./"+process.env.NODE_ENV+".js").update(this);
return this;
};