explicitly define le-store directory

This commit is contained in:
AJ ONeal 2017-07-21 17:38:52 -06:00
parent d9b20b5aeb
commit 267ff2486a
1 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,7 @@
'use strict'; 'use strict';
module.exports.create = function (deps, config, netHandler) { module.exports.create = function (deps, config, netHandler) {
var path = require('path');
var tls = require('tls'); var tls = require('tls');
var parseSni = require('sni'); var parseSni = require('sni');
var greenlock = require('greenlock'); var greenlock = require('greenlock');
@ -64,7 +65,12 @@ module.exports.create = function (deps, config, netHandler) {
} }
, challengeType: 'http-01' , challengeType: 'http-01'
, store: require('le-store-certbot').create({ debug: config.debug }) , store: require('le-store-certbot').create({
debug: config.debug
, configDir: path.join(require('os').homedir(), 'acme', 'etc')
, logDir: path.join(require('os').homedir(), 'acme', 'var', 'log')
, workDir: path.join(require('os').homedir(), 'acme', 'var', 'lib')
})
, approveDomains: function (opts, certs, cb) { , approveDomains: function (opts, certs, cb) {
// This is where you check your database and associated // This is where you check your database and associated