Embeded key files

This commit is contained in:
leca 2023-08-02 19:53:35 +03:00
parent 0986f3ed7b
commit 6431b2c4e0
2 changed files with 5 additions and 3 deletions

View File

@ -4,5 +4,7 @@
"boardHeight": 1080,
"serverAddress": "127.0.0.1",
"saveFile": "./board.png",
"timeBetweenPixels": 5
"timeBetweenPixels": 5,
"httpsCertFile": "",
"httpsKeyFile": ""
}

View File

@ -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;