Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f2b21a9572 | |||
| 82b96d20a8 | |||
| f81c28a2f2 | |||
|
|
3775998627 | ||
| 84190bf6bf |
5
.github/ISSUE_TEMPLATE.md
vendored
5
.github/ISSUE_TEMPLATE.md
vendored
@ -2,10 +2,11 @@
|
|||||||
ATTENTION!
|
ATTENTION!
|
||||||
==========
|
==========
|
||||||
|
|
||||||
Please report issues at https://github.com/Daplie/letsencrypt-express
|
Please report issues at https://git.coolaj86.com/coolaj86/greenlock-express.js
|
||||||
|
|
||||||
========
|
========
|
||||||
ACHTUNG!
|
ACHTUNG!
|
||||||
========
|
========
|
||||||
|
|
||||||
Bitte melden Sie Probleme bei https://github.com/Daplie/letsencrypt-express
|
Bitte melden Sie Probleme bei
|
||||||
|
https://git.coolaj86.com/coolaj86/greenlock-express.js
|
||||||
|
|||||||
@ -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 = koa();
|
var app = new 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 = koa().use(require('koa-sslify')()).callback();
|
var redirectHttps = app.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');
|
||||||
});
|
});
|
||||||
|
|||||||
2
index.js
2
index.js
@ -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.create = function (opts) {
|
module.exports.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);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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.3",
|
"version": "2.1.4",
|
||||||
"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": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user