LINXD-2222-v2 #6
5
app.js
5
app.js
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user