diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-29 21:21:32 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-29 21:21:32 +0900 |
| commit | 0516353afd6be51780b4f1f20cf66d69804c8794 (patch) | |
| tree | c7a86e8d682e10ac2c4c5abeb82de60092ced6f5 /src/server | |
| parent | 1.4.0 (diff) | |
| download | misskey-0516353afd6be51780b4f1f20cf66d69804c8794.tar.gz misskey-0516353afd6be51780b4f1f20cf66d69804c8794.tar.bz2 misskey-0516353afd6be51780b4f1f20cf66d69804c8794.zip | |
Disable http2
Use https instead
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/index.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/server/index.ts b/src/server/index.ts index 4c5aab9a22..ded8f7706e 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -4,14 +4,15 @@ import * as fs from 'fs'; import * as http from 'http'; -import * as http2 from 'http2'; +import * as https from 'https'; +//import * as http2 from 'http2'; import * as zlib from 'zlib'; import * as Koa from 'koa'; import * as Router from 'koa-router'; import * as mount from 'koa-mount'; import * as compress from 'koa-compress'; import * as logger from 'koa-logger'; -const slow = require('koa-slow'); +//const slow = require('koa-slow'); import activityPub from './activitypub'; import webFinger from './webfinger'; @@ -67,7 +68,8 @@ function createServer() { certs[k] = fs.readFileSync(config.https[k]); }); certs['allowHTTP1'] = true; - return http2.createSecureServer(certs, app.callback()); + //return http2.createSecureServer(certs, app.callback()); + return https.createServer(certs, app.callback()); } else { return http.createServer(app.callback()); } |