|
|
@ -13,10 +13,10 @@ var nThen = require("nthen");
|
|
|
|
|
|
|
|
|
|
|
|
var config;
|
|
|
|
var config;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
config = require('./config');
|
|
|
|
config = require('./config/config');
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
|
console.log("You can customize the configuration by copying config.example.js to config.js");
|
|
|
|
console.log("You can customize the configuration by copying config/config.example.js to config/config.js");
|
|
|
|
config = require('./config.example');
|
|
|
|
config = require('./config/config.example');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var websocketPort = config.websocketPort || config.httpPort;
|
|
|
|
var websocketPort = config.websocketPort || config.httpPort;
|
|
|
|
var useSecureWebsockets = config.useSecureWebsockets || false;
|
|
|
|
var useSecureWebsockets = config.useSecureWebsockets || false;
|
|
|
|