Skip to content

Commit 0fada06

Browse files
authored
Update index.js
fix: should pick host name from the env file for the HTTPS cert.
1 parent 80158c1 commit 0fada06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,8 @@ app.get('/logout', (req, res) => {
594594

595595
https
596596
.createServer({
597-
key: fs.readFileSync(path.join(__dirname, '../threads-sample.meta-key.pem')),
598-
cert: fs.readFileSync(path.join(__dirname, '../threads-sample.meta.pem')),
597+
key: fs.readFileSync(path.join(__dirname, '../'+ HOST +'-key.pem')),
598+
cert: fs.readFileSync(path.join(__dirname, '../'+ HOST +'.pem')),
599599
}, app)
600600
.listen(PORT, HOST, (err) => {
601601
if (err) {

0 commit comments

Comments
 (0)