renamed httpsOptions to tlsOptions

This commit is contained in:
tigerbot 2017-04-10 14:21:09 -06:00
parent 72646ced80
commit d0e20a44cd
3 changed files with 10 additions and 10 deletions

View File

@ -253,7 +253,7 @@ var http = require('http');
var LeCore = deps.LeCore; var LeCore = deps.LeCore;
var httpsOptions = deps.httpsOptions; var tlsOptions = deps.tlsOptions;
var challengeStore = deps.challengeStore; var challengeStore = deps.challengeStore;
var certStore = deps.certStore; var certStore = deps.certStore;
@ -278,7 +278,7 @@ function acmeResponder(req, res) {
// //
// Server // Server
// //
https.createServer(httpsOptions, acmeResponder).listen(5001, function () { https.createServer(tlsOptions, acmeResponder).listen(5001, function () {
console.log('Listening https on', this.address()); console.log('Listening https on', this.address());
}); });
http.createServer(acmeResponder).listen(80, function () { http.createServer(acmeResponder).listen(80, function () {

View File

@ -112,7 +112,7 @@ function runDemo() {
closer = serve.init({ closer = serve.init({
LeCore: LeCore LeCore: LeCore
// needs a default key and cert chain, anything will do // needs a default key and cert chain, anything will do
, httpsOptions: require('localhost.daplie.com-certificates') , tlsOptions: require('localhost.daplie.me-certificates')
, challengeStore: challengeStore , challengeStore: challengeStore
, certStore: certStore , certStore: certStore
}); });

View File

@ -15,7 +15,7 @@ module.exports.init = function (deps) {
var LeCore = deps.LeCore; var LeCore = deps.LeCore;
var httpsOptions = deps.httpsOptions; var tlsOptions = deps.tlsOptions || deps.httpsOptions;
var challengeStore = deps.challengeStore; var challengeStore = deps.challengeStore;
var certStore = deps.certStore; var certStore = deps.certStore;
@ -63,11 +63,11 @@ module.exports.init = function (deps) {
// //
// Server // Server
// //
httpsOptions.SNICallback = certGetter; tlsOptions.SNICallback = certGetter;
https.createServer(httpsOptions, acmeResponder).listen(443, function () { https.createServer(tlsOptions, acmeResponder).listen(443, function () {
console.log('Listening https on', this.address()); console.log('Listening https on', this.address());
}); });
https.createServer(httpsOptions, acmeResponder).listen(5001, function () { https.createServer(tlsOptions, acmeResponder).listen(5001, function () {
console.log('Listening https on', this.address()); console.log('Listening https on', this.address());
}); });
http.createServer(acmeResponder).listen(80, function () { http.createServer(acmeResponder).listen(80, function () {