add ssl privatekey/certificate to config

This commit is contained in:
Mystikfluu
2022-06-17 20:00:50 +02:00
parent 1e64231556
commit 03a5803786
3 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -901,8 +901,8 @@ app.use(router)
const httpServer = http.createServer(app);
httpServer.listen(25567);
const privateKey = fs.readFileSync("C:/Certbot/live/ws.zerotwohub.tk/privkey.pem").toString()
const certificate = fs.readFileSync("C:/Certbot/live/ws.zerotwohub.tk/cert.pem").toString()
const privateKey = fs.readFileSync(config["ssl"]["privateKey"]).toString()
const certificate = fs.readFileSync(config["ssl"]["certificate"]).toString()
const credentials = {key: privateKey, cert: certificate};