LINXD-2222: Update
This commit is contained in:
parent
cb5716dd5c
commit
043f66eb0c
6
app.js
6
app.js
@ -9,7 +9,7 @@ const app = express();
|
||||
const Server = require('socket.io');
|
||||
const path = require('node:path');
|
||||
const fs = require('node:fs');
|
||||
let https = require('https');;
|
||||
let https = require('http');;
|
||||
// try {
|
||||
// https = require('node:https');
|
||||
// } catch (err) {
|
||||
@ -47,8 +47,8 @@ app.use('/sfu', express.static(path.join(__dirname, 'public')))
|
||||
|
||||
// SSL cert for HTTPS access
|
||||
const options = {
|
||||
key: fs.readFileSync('./server/ssl/key.pem', 'utf-8'),
|
||||
cert: fs.readFileSync('./server/ssl/cert.pem', 'utf-8'),
|
||||
// key: fs.readFileSync('./server/ssl/key.pem', 'utf-8'),
|
||||
// cert: fs.readFileSync('./server/ssl/cert.pem', 'utf-8'),
|
||||
requestCert: false,
|
||||
rejectUnauthorized: false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user