Skip to content

Commit

Permalink
Merge pull request #615 from HarrisZeng0631/master
Browse files Browse the repository at this point in the history
feature: support https passphrase
  • Loading branch information
illuspas authored Dec 14, 2023
2 parents 641e970 + 16a86c3 commit bfcff34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/node_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ class NodeHttpServer {
key: Fs.readFileSync(this.config.https.key),
cert: Fs.readFileSync(this.config.https.cert)
};
if (this.config.https.passphrase) {
Object.assign(options, { passphrase: this.config.https.passphrase });
}
this.sport = config.https.port ? config.https.port : HTTPS_PORT;
this.httpsServer = Https.createServer(options, app);
}
Expand Down

0 comments on commit bfcff34

Please sign in to comment.