make look more like real le object
This commit is contained in:
parent
8e2f863b84
commit
26852d6662
|
@ -4,7 +4,7 @@ module.exports.create = function (opts) {
|
|||
|
||||
|
||||
|
||||
opts.workerSniCallback = require('le-sni-auto').create({
|
||||
opts.sni = require('le-sni-auto').create({
|
||||
notBefore: opts.notBefore || (10 * 24 * 60 * 60 * 1000)
|
||||
, notAfter: opts.notAfter || (5 * 24 * 60 * 60 * 1000)
|
||||
, getCertificates: function (domain, certs, cb) {
|
||||
|
@ -18,11 +18,11 @@ module.exports.create = function (opts) {
|
|||
});
|
||||
});
|
||||
}
|
||||
}).sniCallback;
|
||||
});
|
||||
|
||||
|
||||
|
||||
opts.httpsOptions = require('localhost.coolaj86.com-certificates').merge({ SNICallback: opts.workerSniCallback });
|
||||
opts.httpsOptions = require('localhost.coolaj86.com-certificates').merge({ SNICallback: opts.sni.sniCallback });
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue