fix
This commit is contained in:
+5
-5
@@ -651,12 +651,12 @@ async function startServer() {
|
||||
})
|
||||
|
||||
// --- Server Start ---
|
||||
const httpsOptions = {
|
||||
key: fs.readFileSync(process.env.SSL_KEY_PATH),
|
||||
cert: fs.readFileSync(process.env.SSL_CERT_PATH),
|
||||
}
|
||||
// const httpsOptions = {
|
||||
// key: fs.readFileSync(process.env.SSL_KEY_PATH),
|
||||
// cert: fs.readFileSync(process.env.SSL_CERT_PATH),
|
||||
// }
|
||||
|
||||
https.createServer(httpsOptions, app).listen(port, () => {
|
||||
app.listen(port, () => {
|
||||
console.log(`Server is running on https://localhost:${port}`)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user