Use onlyoffice spreadsheets without ooserver

This commit is contained in:
yflory
2019-01-07 12:02:38 +01:00
parent b2b23446e8
commit 1e672c4a6b
7 changed files with 428 additions and 101 deletions

View File

@@ -258,7 +258,7 @@ app.use(function (req, res, next) {
var httpServer = httpsOpts ? Https.createServer(httpsOpts, app) : Http.createServer(app);
/* Install sockjs websocket server */
OOServer.install(httpServer, config.httpPort, () => {
//OOServer.install(httpServer, config.httpPort, () => {
httpServer.listen(config.httpPort,config.httpAddress,function(){
var host = config.httpAddress;
var hostName = !host.indexOf(':') ? '[' + host + ']' : host;
@@ -268,11 +268,11 @@ OOServer.install(httpServer, config.httpPort, () => {
console.log('\n[%s] server available http://%s%s', new Date().toISOString(), hostName, ps);
});
});
//});
if (config.httpSafePort) {
var safeHttpServer = Http.createServer(app).listen(config.httpSafePort, config.httpAddress);
OOServer.install(safeHttpServer, config.httpSafePort, () => {
});
//OOServer.install(safeHttpServer, config.httpSafePort, () => {
//});
}
var wsConfig = { server: httpServer };