Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
1.1.1 patch release: Repaired HTTPS functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan7g committed Sep 20, 2018
1 parent c9e79a9 commit 5cce54c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions model/CorouteInternalServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ module.exports = class CorouteInternalServer {
async startServer () {
if (this.options.hasOwnProperty('https')) {
this.internalServer = https.createServer({
'key': (await pfs.readFile(path.resolve(process.cwd(), this.options.https.key))).toString(),
'cert': (await pfs.readFile(path.resolve(process.cwd(), this.options.https.cert))).toString()
'key': await pfs.readFile(path.resolve(process.cwd(), this.options.https.key)),
'cert': await pfs.readFile(path.resolve(process.cwd(), this.options.https.cert)),
'passphrase': this.options.https.passphrase
}, this.app.serverHandler)
}
else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "coroute",
"version": "1.1.0",
"version": "1.1.1",
"description": "The awesome Node.js HTTP reverse-proxy server!",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down

0 comments on commit 5cce54c

Please sign in to comment.