Compare commits
No commits in common. "master" and "v2.1.3" have entirely different histories.
5
.github/ISSUE_TEMPLATE.md
vendored
5
.github/ISSUE_TEMPLATE.md
vendored
@ -2,11 +2,10 @@
|
||||
ATTENTION!
|
||||
==========
|
||||
|
||||
Please report issues at https://git.coolaj86.com/coolaj86/greenlock-express.js
|
||||
Please report issues at https://github.com/Daplie/letsencrypt-express
|
||||
|
||||
========
|
||||
ACHTUNG!
|
||||
========
|
||||
|
||||
Bitte melden Sie Probleme bei
|
||||
https://git.coolaj86.com/coolaj86/greenlock-express.js
|
||||
Bitte melden Sie Probleme bei https://github.com/Daplie/letsencrypt-express
|
||||
|
||||
@ -68,7 +68,7 @@ var greenlock = require('greenlock-koa').create({
|
||||
var http = require('http');
|
||||
var https = require('https');
|
||||
var koa = require('koa');
|
||||
var app = new koa();
|
||||
var app = koa();
|
||||
|
||||
app.use(function *() {
|
||||
this.body = 'Hello World';
|
||||
@ -84,7 +84,7 @@ server.listen(443, function () {
|
||||
|
||||
// http redirect to https
|
||||
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 () {
|
||||
console.log('Listening on port 80 to handle ACME http-01 challenge and redirect to https');
|
||||
});
|
||||
|
||||
2
index.js
2
index.js
@ -2,7 +2,7 @@
|
||||
|
||||
module.exports = require('greenlock-express');
|
||||
module.exports._greenlockExpressCreate = module.exports.create;
|
||||
module.exports.create = function (opts) {
|
||||
module.create = function (opts) {
|
||||
opts._communityPackage = opts._communityPackage || 'greenlock-koa';
|
||||
return module.exports._greenlockExpressCreate(opts);
|
||||
};
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "greenlock-koa",
|
||||
"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",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user