|
@ -4,7 +4,7 @@ var pathmodule = require('path'); |
|
|
var app = require('express')(); |
|
|
var app = require('express')(); |
|
|
var http = require('http').Server(app); |
|
|
var http = require('http').Server(app); |
|
|
var https = require('https'); |
|
|
var https = require('https'); |
|
|
var CONFIG = require('./myconfig/runconfig.js'); |
|
|
var CONFIG = require('myconfig/runconfig.js'); |
|
|
const io = require("socket.io")(http, { |
|
|
const io = require("socket.io")(http, { |
|
|
// pingTimeout: 30000,
|
|
|
// pingTimeout: 30000,
|
|
|
// allowUpgrades: false,
|
|
|
// allowUpgrades: false,
|
|
@ -584,7 +584,7 @@ function onCollection(err, collection) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var mongourl = "mongodb://playgrounduser:efvvnuioervefSDFSGYGHRDFVsdfergvssppiiedifhwincvinviw_dbfjbsifbsdkjfswuunscfudfgbbfvibqefwrvnine@ondemand_playground_mongo1:27017,ondemand_playground_mongo2:27017,ondemand_playground_mongo3:27017,ondemand_playground_mongo4:27017,ondemand_playground_mongo5:27017,ondemand_playground_mongo6:27017,ondemand_playground_mongo7:27017/fluent?replicaSet=rs1" |
|
|
var mongourl = "mongodb://"+CONFIG.mongo.user+":"+CONFIG.mongo.password+"@ondemand_playground_mongo1:27017,ondemand_playground_mongo2:27017,ondemand_playground_mongo3:27017,ondemand_playground_mongo4:27017,ondemand_playground_mongo5:27017,ondemand_playground_mongo6:27017,ondemand_playground_mongo7:27017/fluent?replicaSet=rs1" |
|
|
const OPTS = { |
|
|
const OPTS = { |
|
|
useNewUrlParser: true, |
|
|
useNewUrlParser: true, |
|
|
useUnifiedTopology: true |
|
|
useUnifiedTopology: true |
|
|