fix ssl cert/key

This commit is contained in:
Sergiu Toma 2022-10-18 18:13:24 +03:00
parent f96fd24e03
commit 2c00de1dd0
1 changed files with 2 additions and 2 deletions

4
app.js
View File

@ -37,8 +37,8 @@ app.use('/sfu', express.static(path.join(__dirname, 'public')))
// SSL cert for HTTPS access
const options = {
key: fs.readFileSync(process.env.SERVER_KEY, 'utf-8'),
cert: fs.readFileSync(process.env.SERVER_CERT, 'utf-8'),
key: fs.readFileSync('./server/ssl/key.pem', 'utf-8'),
cert: fs.readFileSync('./server/ssl/cert.pem', 'utf-8'),
}
const httpsServer = https.createServer(options, app);