Skip to content

Commit

Permalink
fix(hops-express): fix ssl file location references
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-drexler authored and ZauberNerd committed Feb 19, 2018
1 parent 24728d0 commit f7a94ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/express/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ exports.run = function run(app, callback) {
if (hopsConfig.https) {
var options = {
key: fs.readFileSync(
hopsConfig.keyFile || path.join(__dirname, 'ssl', 'localhost.ssl.key')
hopsConfig.keyFile ||
path.resolve(path.join(__dirname, '..', 'ssl', 'localhost.ssl.key'))
),
cert: fs.readFileSync(
hopsConfig.certFile || path.join(__dirname, 'ssl', 'localhost.ssl.crt')
hopsConfig.certFile ||
path.resolve(path.join(__dirname, '..', 'ssl', 'localhost.ssl.crt'))
),
};
server = https.createServer(options, app);
Expand Down
3 changes: 2 additions & 1 deletion packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"files": [
"index.js",
"commands",
"lib"
"lib",
"ssl"
],
"repository": {
"type": "git",
Expand Down

0 comments on commit f7a94ea

Please sign in to comment.