drop support for 'websocketPath' and 'useExternalWebsocket' configuration points

This commit is contained in:
ansuz
2019-12-23 18:23:50 -05:00
parent 97bc793ca8
commit a8b363dba0
2 changed files with 10 additions and 8 deletions

View File

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