Embeded key files
This commit is contained in:
parent
0986f3ed7b
commit
6431b2c4e0
|
@ -4,5 +4,7 @@
|
||||||
"boardHeight": 1080,
|
"boardHeight": 1080,
|
||||||
"serverAddress": "127.0.0.1",
|
"serverAddress": "127.0.0.1",
|
||||||
"saveFile": "./board.png",
|
"saveFile": "./board.png",
|
||||||
"timeBetweenPixels": 5
|
"timeBetweenPixels": 5,
|
||||||
|
"httpsCertFile": "",
|
||||||
|
"httpsKeyFile": ""
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,8 +19,8 @@ const boardWidth = config.boardWidth;
|
||||||
const boardHeight = config.boardHeight;
|
const boardHeight = config.boardHeight;
|
||||||
const timeBetweenPixels = config.timeBetweenPixels;
|
const timeBetweenPixels = config.timeBetweenPixels;
|
||||||
const credentails = {
|
const credentails = {
|
||||||
key: fs.readFileSync("key.pem"),
|
key: fs.readFileSync(config.httpsKeyFile),
|
||||||
cert: fs.readFileSync("cert.pem")
|
cert: fs.readFileSync(config.httpsCertFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
var toQuit = false;
|
var toQuit = false;
|
||||||
|
|
Loading…
Reference in New Issue