mirror of
https://github.com/therootcompany/greenlock-express.js.git
synced 2025-02-23 21:28:05 +00:00
Recommend using koa-sslify over koa-force-ssl
The README for koa-force-ssl says the middleware is deprecated and that koa-sslify should be used instead.
This commit is contained in:
parent
4b07df9676
commit
04831404f5
@ -143,7 +143,7 @@ var http = require('http');
|
||||
var https = require('spdy'); // Note: some have reported trouble with `http2` and success with `spdy`
|
||||
var koa = require('koa');
|
||||
var app = koa();
|
||||
var redirectHttps = koa().use(require('koa-force-ssl').callback();
|
||||
var redirectHttps = koa().use(require('koa-sslify').callback();
|
||||
|
||||
app.use(function *() {
|
||||
this.body = 'Hello World';
|
||||
|
Loading…
x
Reference in New Issue
Block a user