cleaned up the accounts, limits and revenue sharing and unified the config in one place

This commit is contained in:
Caleb James DeLisle
2017-05-26 18:09:31 +02:00
parent 6c1861dbc6
commit 66520b6041
9 changed files with 70 additions and 27 deletions

View File

@@ -121,6 +121,7 @@ app.get('/api/config', function(req, res){
waitSeconds: 60,
urlArgs: 'ver=' + Package.version + (DEV_MODE? '-' + (+new Date()): ''),
},
noSubscriptionButton: (config.noSubscriptionButton === true),
websocketPath: config.useExternalWebsocket ? undefined : config.websocketPath,
websocketURL:'ws' + ((useSecureWebsockets) ? 's' : '') + '://' + host + ':' +
websocketPort + '/cryptpad_websocket',