make look more like real le object
This commit is contained in:
		
							parent
							
								
									88c8b812a2
								
							
						
					
					
						commit
						333a8b68f3
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user