Compare commits

...

7 Commits

Author SHA1 Message Date
AJ ONeal f2b21a9572 typo fix 2020-04-29 15:59:01 +00:00
AJ ONeal 82b96d20a8 v2.1.4: fix typo in README 2019-01-17 09:52:46 -07:00
AJ ONeal f81c28a2f2 Merge branch 'master' of snowdream/greenlock-koa.js into master
Thanks. Sorry I didn't see this sooner.
2019-01-15 06:00:38 +00:00
snowdream 3775998627 Update 'README.md'
fix #1
2019-01-09 14:39:11 +00:00
AJ ONeal 84190bf6bf Update '.github/ISSUE_TEMPLATE.md' 2018-11-21 23:22:19 +00:00
AJ ONeal 5b7e962963 add homepage url 2018-05-10 13:54:49 -06:00
AJ ONeal 72fd25d54f update LICENSE 2018-05-10 13:00:14 -06:00
5 changed files with 38 additions and 7 deletions

View File

@ -2,10 +2,11 @@
ATTENTION!
==========
Please report issues at https://github.com/Daplie/letsencrypt-express
Please report issues at https://git.coolaj86.com/coolaj86/greenlock-express.js
========
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

31
LICENSE
View File

@ -1,3 +1,32 @@
At your option you may choose either of the following licenses:
* The MIT License (MIT)
* The Apache License 2.0 (Apache-2.0)
The MIT License (MIT)
Copyright (c) 2016-2018 AJ ONeal
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
@ -186,7 +215,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
Copyright 2015 AJ ONeal
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -68,7 +68,7 @@ var greenlock = require('greenlock-koa').create({
var http = require('http');
var https = require('https');
var koa = require('koa');
var app = koa();
var app = new 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 = koa().use(require('koa-sslify')()).callback();
var redirectHttps = app.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');
});

View File

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

View File

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