Embeded key files
This commit is contained in:
parent
0986f3ed7b
commit
6431b2c4e0
|
@ -4,5 +4,7 @@
|
|||
"boardHeight": 1080,
|
||||
"serverAddress": "127.0.0.1",
|
||||
"saveFile": "./board.png",
|
||||
"timeBetweenPixels": 5
|
||||
"timeBetweenPixels": 5,
|
||||
"httpsCertFile": "",
|
||||
"httpsKeyFile": ""
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue