LINXD-2222: Update
This commit is contained in:
parent
4522709a47
commit
7642718888
5
app.js
5
app.js
@ -48,8 +48,8 @@ app.use('/sfu', express.static(path.join(__dirname, 'public')))
|
|||||||
const options = {
|
const options = {
|
||||||
key: fs.readFileSync('./server/ssl/key.pem', 'utf-8'),
|
key: fs.readFileSync('./server/ssl/key.pem', 'utf-8'),
|
||||||
cert: fs.readFileSync('./server/ssl/cert.pem', 'utf-8'),
|
cert: fs.readFileSync('./server/ssl/cert.pem', 'utf-8'),
|
||||||
// requestCert: false,
|
requestCert: false,
|
||||||
// rejectUnauthorized: false
|
rejectUnauthorized: false
|
||||||
}
|
}
|
||||||
|
|
||||||
const httpsServer = https.createServer(options, app)
|
const httpsServer = https.createServer(options, app)
|
||||||
@ -60,6 +60,7 @@ httpsServer.listen(process.env.PORT, () => {
|
|||||||
|
|
||||||
const io = new Server(httpsServer, {
|
const io = new Server(httpsServer, {
|
||||||
allowEIO3: true,
|
allowEIO3: true,
|
||||||
|
origins: ["*:*"],
|
||||||
allowRequest: (req, next) => {
|
allowRequest: (req, next) => {
|
||||||
console.log('req', req);
|
console.log('req', req);
|
||||||
next(null, true)
|
next(null, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user