Compare commits

..

No commits in common. "master" and "v2.1.3" have entirely different histories.

4 changed files with 6 additions and 7 deletions

View File

@ -2,11 +2,10 @@
ATTENTION! ATTENTION!
========== ==========
Please report issues at https://git.coolaj86.com/coolaj86/greenlock-express.js Please report issues at https://github.com/Daplie/letsencrypt-express
======== ========
ACHTUNG! ACHTUNG!
======== ========
Bitte melden Sie Probleme bei Bitte melden Sie Probleme bei https://github.com/Daplie/letsencrypt-express
https://git.coolaj86.com/coolaj86/greenlock-express.js

View File

@ -68,7 +68,7 @@ var greenlock = require('greenlock-koa').create({
var http = require('http'); var http = require('http');
var https = require('https'); var https = require('https');
var koa = require('koa'); var koa = require('koa');
var app = new koa(); var app = koa();
app.use(function *() { app.use(function *() {
this.body = 'Hello World'; this.body = 'Hello World';
@ -84,7 +84,7 @@ server.listen(443, function () {
// http redirect to https // http redirect to https
var http = require('http'); var http = require('http');
var redirectHttps = app.use(require('koa-sslify')()).callback(); var redirectHttps = koa().use(require('koa-sslify')()).callback();
http.createServer(greenlock.middleware(redirectHttps)).listen(80, function () { http.createServer(greenlock.middleware(redirectHttps)).listen(80, function () {
console.log('Listening on port 80 to handle ACME http-01 challenge and redirect to https'); console.log('Listening on port 80 to handle ACME http-01 challenge and redirect to https');
}); });

View File

@ -2,7 +2,7 @@
module.exports = require('greenlock-express'); module.exports = require('greenlock-express');
module.exports._greenlockExpressCreate = module.exports.create; module.exports._greenlockExpressCreate = module.exports.create;
module.exports.create = function (opts) { module.create = function (opts) {
opts._communityPackage = opts._communityPackage || 'greenlock-koa'; opts._communityPackage = opts._communityPackage || 'greenlock-koa';
return module.exports._greenlockExpressCreate(opts); return module.exports._greenlockExpressCreate(opts);
}; };

View File

@ -1,7 +1,7 @@
{ {
"name": "greenlock-koa", "name": "greenlock-koa",
"homepage": "https://git.coolaj86.com/coolaj86/greenlock-koa.js", "homepage": "https://git.coolaj86.com/coolaj86/greenlock-koa.js",
"version": "2.1.4", "version": "2.1.3",
"description": "An Automated HTTPS ACME client (Let's Encrypt v2) for Koa", "description": "An Automated HTTPS ACME client (Let's Encrypt v2) for Koa",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {