Skip to content

Commit

Permalink
feat(ssl): add ability to specify custom ssl key + cert #29
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Feb 27, 2017
1 parent 927f831 commit c54d224
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pact.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ module.exports = (opts) => {
const port = opts.port || 1234
const host = opts.host || '127.0.0.1'
const ssl = opts.ssl || false
const sslcert = opts.sslcert || false
const sslkey = opts.sslkey || false
const dir = opts.dir || path.resolve(process.cwd(), 'pacts')
const log = opts.log || path.resolve(process.cwd(), 'logs', 'pact.log')
const logLevel = opts.logLevel || 'INFO'
Expand All @@ -54,7 +56,9 @@ module.exports = (opts) => {
log: log,
dir: dir,
spec: spec,
ssl: ssl
ssl: ssl,
sslcert: sslcert,
sslkey: sslkey
})
serviceFactory.logLevel(logLevel)

Expand Down

0 comments on commit c54d224

Please sign in to comment.