2015-12-13 08:05:24 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var path = require('path');
|
|
|
|
|
2015-12-15 12:12:15 +00:00
|
|
|
var binpath = require('homedir') + '/.local/share/letsencrypt/bin/letsencrypt';
|
2015-12-13 08:05:24 +00:00
|
|
|
|
|
|
|
var config = {
|
|
|
|
|
|
|
|
plainPort: 80
|
|
|
|
, tlsPort: 5001 // 5001 for testing, normally 443
|
|
|
|
, tlsKey: require('localhost.daplie.com-certificates').key
|
|
|
|
, tlsCert: require('localhost.daplie.com-certificates').cert
|
|
|
|
|
|
|
|
|
|
|
|
, le: {
|
|
|
|
webrootPath: path.join(__dirname, '..', 'tests', 'acme-challenge')
|
|
|
|
, fullchainTpl: '/live/:hostname/fullchain.pem'
|
|
|
|
, privkeyTpl: '/live/:hostname/privkey.pem'
|
|
|
|
, configDir: path.join(__dirname, '..', 'tests', 'letsencrypt.config')
|
|
|
|
|
|
|
|
// these are specific to the python client and won't be needed with the purejs library
|
|
|
|
, logsDir: path.join(__dirname, '..', 'tests', 'letsencrypt.logs')
|
|
|
|
, workDir: path.join(__dirname, '..', 'tests', 'letsencrypt.work')
|
2015-12-15 05:21:59 +00:00
|
|
|
, pythonClientPath: binpath
|
2015-12-13 08:05:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2015-12-15 05:21:59 +00:00
|
|
|
//config.backend = require('letsencrypt/backends/python').create(binpath, config.le);
|
|
|
|
config.backend = require('../backends/python');
|
2015-12-13 08:05:24 +00:00
|
|
|
|
|
|
|
module.exports = config;
|