make look more like real le object
This commit is contained in:
parent
e50782b85a
commit
45c2be94b0
|
@ -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)
|
notBefore: opts.notBefore || (10 * 24 * 60 * 60 * 1000)
|
||||||
, notAfter: opts.notAfter || (5 * 24 * 60 * 60 * 1000)
|
, notAfter: opts.notAfter || (5 * 24 * 60 * 60 * 1000)
|
||||||
, getCertificates: function (domain, certs, cb) {
|
, getCertificates: function (domain, certs, cb) {
|
||||||
|
@ -18,11 +18,11 @@ module.exports.create = function (opts) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}).sniCallback;
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
opts.httpsOptions = require('localhost.daplie.com-certificates').merge({ SNICallback: opts.workerSniCallback });
|
opts.httpsOptions = require('localhost.daplie.com-certificates').merge({ SNICallback: opts.sni.sniCallback });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue