modify ssl path

This commit is contained in:
SrGooglo 2024-09-11 01:15:25 +00:00
parent 3dc55690d3
commit 5a6f61b9aa

View File

@ -10,8 +10,8 @@ import fs from "node:fs"
import path from "node:path"
function getHttpServerEngine(extraOptions = {}, handler = () => { }) {
const sslKey = path.resolve(process.cwd(), "ssl", "privkey.pem")
const sslCert = path.resolve(process.cwd(), "ssl", "cert.pem")
const sslKey = path.resolve(process.cwd(), ".ssl", "privkey.pem")
const sslCert = path.resolve(process.cwd(), ".ssl", "cert.pem")
if (fs.existsSync(sslKey) && fs.existsSync(sslCert)) {
return https.createServer(