pass homedir

This commit is contained in:
AJ ONeal 2016-10-27 03:00:40 -06:00
parent 39e6754b1f
commit dedb59e413
1 changed files with 5 additions and 1 deletions

View File

@ -122,7 +122,11 @@ function createServer(port, pubdir, content, opts) {
, 'dns-01': leChallengeDdns , 'dns-01': leChallengeDdns
} }
, challengeType: (opts.tunnel ? 'http-01' : 'dns-01') , challengeType: (opts.tunnel ? 'http-01' : 'dns-01')
, store: require('le-store-certbot').create({ webrootPath: webrootPath, homedir: opts.homedir }) , store: require('le-store-certbot').create({
webrootPath: webrootPath
, configDir: path.join((opts.homedir || '~'), 'letsencrypt', 'etc')
, homedir: opts.homedir
})
, webrootPath: webrootPath , webrootPath: webrootPath
// You probably wouldn't need to replace the default sni handler // You probably wouldn't need to replace the default sni handler