LINXD-2222: Update

This commit is contained in:
Sergiu Toma 2022-09-20 00:04:42 +03:00
parent 4522709a47
commit 7642718888

5
app.js
View File

@ -48,8 +48,8 @@ app.use('/sfu', express.static(path.join(__dirname, 'public')))
const options = {
key: fs.readFileSync('./server/ssl/key.pem', 'utf-8'),
cert: fs.readFileSync('./server/ssl/cert.pem', 'utf-8'),
// requestCert: false,
// rejectUnauthorized: false
requestCert: false,
rejectUnauthorized: false
}
const httpsServer = https.createServer(options, app)
@ -60,6 +60,7 @@ httpsServer.listen(process.env.PORT, () => {
const io = new Server(httpsServer, {
allowEIO3: true,
origins: ["*:*"],
allowRequest: (req, next) => {
console.log('req', req);
next(null, true)