add some classes

This commit is contained in:
Philipp Kunz 2016-10-24 01:06:27 +02:00
parent b03d8bfb65
commit aa85d294c5
3 changed files with 15 additions and 20 deletions

View File

@ -24,9 +24,9 @@ class Letsencrypt {
configDir: paths.leConfigDir, configDir: paths.leConfigDir,
privkeyPath: ':configDir/live/:hostname/privkey.pem', privkeyPath: ':configDir/live/:hostname/privkey.pem',
fullchainPath: ':configDir/live/:hostname/fullchain.pem', fullchainPath: ':configDir/live/:hostname/fullchain.pem',
certPath: ':config/live/:hostname/cert.pem', certPath: ':configDir/live/:hostname/cert.pem',
chainPath: ':config/live/:hostname/chain.pem', chainPath: ':configDir/live/:hostname/chain.pem',
agreeToTerms: this._leAgree, agreeToTerms: true,
debug: true debug: true
}); });
} }
@ -37,6 +37,7 @@ class Letsencrypt {
plugins.beautylog.log(`trying to register domain ${domainNameArg}`); plugins.beautylog.log(`trying to register domain ${domainNameArg}`);
let done = q.defer(); let done = q.defer();
console.log('test'); console.log('test');
console.log(this._leServerUrl);
this._leInstance.register({ this._leInstance.register({
domains: [domainNameArg], domains: [domainNameArg],
email: 'domains@lossless.org', email: 'domains@lossless.org',
@ -65,7 +66,7 @@ class Letsencrypt {
*/ */
_leChallengeHandler() { _leChallengeHandler() {
return { return {
getOptions: (...args) => { getOptions: () => {
return { return {
debug: true debug: true
}; };
@ -94,10 +95,7 @@ class Letsencrypt {
cb(); cb();
}); });
}, },
loopback: (args, domain, challenge, cb) => { loopback: (opts, domain, token, keyAuthorization, cb) => {
console.log(args);
console.log(domain);
console.log(challenge);
cb(); cb();
}, },
test: (defaults, domain, challenge, cb) => { test: (defaults, domain, challenge, cb) => {
@ -111,4 +109,4 @@ class Letsencrypt {
} }
} }
exports.Letsencrypt = Letsencrypt; exports.Letsencrypt = Letsencrypt;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VydC5jbGFzc2VzLmxldHNlbmNyeXB0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZ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QUMsY0FBYyxDQUFDLE1BQU0sQ0FBQztxQkFDdkMsSUFBSSxDQUFDO29CQUNGLEVBQUUsRUFBRSxDQUFBO2dCQUNSLENBQUMsQ0FBQyxDQUFBO1lBQ1YsQ0FBQztZQUNELFFBQVEsRUFBRSxDQUFDLElBQUksRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFFLGdCQUFnQixFQUFFLEVBQUU7Z0JBQ2hELEVBQUUsRUFBRSxDQUFBO1lBQ1IsQ0FBQztZQUNELElBQUksRUFBRSxDQUFDLFFBQVEsRUFBRSxNQUFNLEVBQUUsU0FBUyxFQUFFLEVBQUU7Z0JBQ2xDLEVBQUUsRUFBRSxDQUFBO1lBQ1IsQ0FBQztTQUNKLENBQUE7SUFDTCxDQUFDO0lBRU8sUUFBUSxDQUFDLElBQUksRUFBRSxPQUFPO1FBQzFCLHFDQUFxQztRQUNyQyxPQUFPLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUMvQixDQUFDO0NBQ0o7QUF4SEQsa0NBd0hDIn0=

View File

@ -31,7 +31,6 @@
"beautylog": "^6.0.0", "beautylog": "^6.0.0",
"cflare": "0.0.10", "cflare": "0.0.10",
"fs-extra": "^0.30.0", "fs-extra": "^0.30.0",
"le-store-certbot": "^2.0.3",
"letsencrypt": "^2.1.8", "letsencrypt": "^2.1.8",
"lik": "^1.0.24", "lik": "^1.0.24",
"q": "^1.4.1", "q": "^1.4.1",

View File

@ -41,11 +41,11 @@ export class Letsencrypt {
challenges: { 'dns-01': this._leChallengeHandler() }, challenges: { 'dns-01': this._leChallengeHandler() },
challengeType: 'dns-01', challengeType: 'dns-01',
configDir: paths.leConfigDir, configDir: paths.leConfigDir,
privkeyPath: ':configDir/live/:hostname/privkey.pem', // privkeyPath: ':configDir/live/:hostname/privkey.pem',
fullchainPath: ':configDir/live/:hostname/fullchain.pem', // Note: both that :config and :hostname fullchainPath: ':configDir/live/:hostname/fullchain.pem',
certPath: ':config/live/:hostname/cert.pem', // will be templated as expected certPath: ':configDir/live/:hostname/cert.pem',
chainPath: ':config/live/:hostname/chain.pem', chainPath: ':configDir/live/:hostname/chain.pem',
agreeToTerms: this._leAgree, agreeToTerms: true,
debug: true debug: true
}) })
} }
@ -57,6 +57,7 @@ export class Letsencrypt {
plugins.beautylog.log(`trying to register domain ${domainNameArg}`) plugins.beautylog.log(`trying to register domain ${domainNameArg}`)
let done = q.defer() let done = q.defer()
console.log('test') console.log('test')
console.log(this._leServerUrl)
this._leInstance.register({ this._leInstance.register({
domains: [domainNameArg], domains: [domainNameArg],
email: 'domains@lossless.org', email: 'domains@lossless.org',
@ -91,7 +92,7 @@ export class Letsencrypt {
*/ */
private _leChallengeHandler() { private _leChallengeHandler() {
return { return {
getOptions: (...args) => { getOptions: () => {
return { return {
debug: true debug: true
} }
@ -120,10 +121,7 @@ export class Letsencrypt {
cb() cb()
}) })
}, },
loopback: (args, domain, challenge, cb) => { loopback: (opts, domain, token, keyAuthorization, cb) => {
console.log(args)
console.log(domain)
console.log(challenge)
cb() cb()
}, },
test: (defaults, domain, challenge, cb) => { test: (defaults, domain, challenge, cb) => {