Compare commits
	
		
			7 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| f2b21a9572 | |||
| 82b96d20a8 | |||
| f81c28a2f2 | |||
|  | 3775998627 | ||
| 84190bf6bf | |||
|  | 5b7e962963 | ||
|  | 72fd25d54f | 
							
								
								
									
										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 | ||||||
|  | |||||||
							
								
								
									
										31
									
								
								LICENSE
									
									
									
									
									
								
							
							
						
						
									
										31
									
								
								LICENSE
									
									
									
									
									
								
							| @ -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 |                                  Apache License | ||||||
|                            Version 2.0, January 2004 |                            Version 2.0, January 2004 | ||||||
|                         http://www.apache.org/licenses/ |                         http://www.apache.org/licenses/ | ||||||
| @ -186,7 +215,7 @@ | |||||||
|       same "printed page" as the copyright notice for easier |       same "printed page" as the copyright notice for easier | ||||||
|       identification within third-party archives. |       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"); |    Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|    you may not use this file except in compliance with the License. |    you may not use this file except in compliance with the License. | ||||||
|  | |||||||
| @ -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,6 +1,7 @@ | |||||||
| { | { | ||||||
|   "name": "greenlock-koa", |   "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", |   "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