镜像自地址
https://github.com/therootcompany/greenlock-express.js.git
已同步 2024-11-16 17:28:59 +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.
这个提交包含在:
父节点
4b07df9676
当前提交
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';
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户