mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
modify ssl path
This commit is contained in:
parent
3dc55690d3
commit
5a6f61b9aa
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user