Embeded key files
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user