|
|
@ -166,7 +166,7 @@ app.get('/api/config', function(req, res){
|
|
|
|
},
|
|
|
|
},
|
|
|
|
removeDonateButton: (config.removeDonateButton === true),
|
|
|
|
removeDonateButton: (config.removeDonateButton === true),
|
|
|
|
allowSubscriptions: (config.allowSubscriptions === true),
|
|
|
|
allowSubscriptions: (config.allowSubscriptions === true),
|
|
|
|
websocketPath: config.externalWebsocketPath,
|
|
|
|
websocketPath: config.externalWebsocketURL,
|
|
|
|
httpUnsafeOrigin: config.httpUnsafeOrigin.replace(/^\s*/, ''),
|
|
|
|
httpUnsafeOrigin: config.httpUnsafeOrigin.replace(/^\s*/, ''),
|
|
|
|
adminEmail: config.adminEmail,
|
|
|
|
adminEmail: config.adminEmail,
|
|
|
|
adminKeys: admins,
|
|
|
|
adminKeys: admins,
|
|
|
@ -234,7 +234,7 @@ var nt = nThen(function (w) {
|
|
|
|
log = config.log = _log;
|
|
|
|
log = config.log = _log;
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
}).nThen(function (w) {
|
|
|
|
}).nThen(function (w) {
|
|
|
|
if (config.externalWebsocketPath) {
|
|
|
|
if (config.externalWebsocketURL) {
|
|
|
|
// if you plan to use an external websocket server
|
|
|
|
// if you plan to use an external websocket server
|
|
|
|
// then you don't need to load any API services other than the logger.
|
|
|
|
// then you don't need to load any API services other than the logger.
|
|
|
|
// Just abort.
|
|
|
|
// Just abort.
|
|
|
|