|
|
@ -150,6 +150,7 @@ app.get('/api/config', function(req, res){
|
|
|
|
websocketPath: config.useExternalWebsocket ? undefined : config.websocketPath,
|
|
|
|
websocketPath: config.useExternalWebsocket ? undefined : config.websocketPath,
|
|
|
|
websocketURL:'ws' + ((useSecureWebsockets) ? 's' : '') + '://' + host + ':' +
|
|
|
|
websocketURL:'ws' + ((useSecureWebsockets) ? 's' : '') + '://' + host + ':' +
|
|
|
|
websocketPort + '/cryptpad_websocket',
|
|
|
|
websocketPort + '/cryptpad_websocket',
|
|
|
|
|
|
|
|
httpUnsafeOrigin: config.httpUnsafeOrigin,
|
|
|
|
}, null, '\t'),
|
|
|
|
}, null, '\t'),
|
|
|
|
'obj.httpSafeOrigin = ' + (function () {
|
|
|
|
'obj.httpSafeOrigin = ' + (function () {
|
|
|
|
if (config.httpSafeOrigin) { return config.httpSafeOrigin; }
|
|
|
|
if (config.httpSafeOrigin) { return config.httpSafeOrigin; }
|
|
|
|