Skip to content

Commit

Permalink
Https reverse proxy
Browse files Browse the repository at this point in the history
Reverse proxy for https is "working".

Signed-off-by: Josh Erickson <josh@snoj.us>
  • Loading branch information
snoj committed Jul 10, 2015
1 parent 6452345 commit e651fcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ export default class Proxy extends EventEmitter {
})
})
}
this._server = http.createServer(httpHandler)

let httpd = (opts.reverse && opts.tlsopts) ? https.createServer.bind(https, opts.tlsopts) : http;
this._server = httpd(httpHandler);

this._server.on('error', err => {
this.emit('error', err)
Expand Down

0 comments on commit e651fcb

Please sign in to comment.