LINXD-2222: Update
This commit is contained in:
parent
507c131058
commit
a8afa8a532
7
app.js
7
app.js
@ -9,7 +9,8 @@ const app = express();
|
|||||||
const Server = require('socket.io');
|
const Server = require('socket.io');
|
||||||
const path = require('node:path');
|
const path = require('node:path');
|
||||||
const fs = require('node:fs');
|
const fs = require('node:fs');
|
||||||
const https = require('httpolyglot');
|
const httpolyglot = require('httpolyglot');
|
||||||
|
const https = httpolyglot.https;
|
||||||
// let https = require('https');
|
// let https = require('https');
|
||||||
// try {
|
// try {
|
||||||
// https = require('node:https');
|
// https = require('node:https');
|
||||||
@ -48,8 +49,8 @@ app.use('/sfu', express.static(path.join(__dirname, 'public')))
|
|||||||
|
|
||||||
// SSL cert for HTTPS access
|
// SSL cert for HTTPS access
|
||||||
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user