diff --git a/settings.json b/settings.json index 7042e90..62ab56f 100644 --- a/settings.json +++ b/settings.json @@ -4,5 +4,7 @@ "boardHeight": 1080, "serverAddress": "127.0.0.1", "saveFile": "./board.png", - "timeBetweenPixels": 5 + "timeBetweenPixels": 5, + "httpsCertFile": "", + "httpsKeyFile": "" } diff --git a/src/index.js b/src/index.js index 8e7950b..2791868 100644 --- a/src/index.js +++ b/src/index.js @@ -19,8 +19,8 @@ const boardWidth = config.boardWidth; const boardHeight = config.boardHeight; const timeBetweenPixels = config.timeBetweenPixels; const credentails = { - key: fs.readFileSync("key.pem"), - cert: fs.readFileSync("cert.pem") + key: fs.readFileSync(config.httpsKeyFile), + cert: fs.readFileSync(config.httpsCertFile) } var toQuit = false;