Disable http2
Use https instead
This commit is contained in:
parent
5f1b726bab
commit
0516353afd
@ -4,14 +4,15 @@
|
|||||||
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as http from 'http';
|
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 zlib from 'zlib';
|
||||||
import * as Koa from 'koa';
|
import * as Koa from 'koa';
|
||||||
import * as Router from 'koa-router';
|
import * as Router from 'koa-router';
|
||||||
import * as mount from 'koa-mount';
|
import * as mount from 'koa-mount';
|
||||||
import * as compress from 'koa-compress';
|
import * as compress from 'koa-compress';
|
||||||
import * as logger from 'koa-logger';
|
import * as logger from 'koa-logger';
|
||||||
const slow = require('koa-slow');
|
//const slow = require('koa-slow');
|
||||||
|
|
||||||
import activityPub from './activitypub';
|
import activityPub from './activitypub';
|
||||||
import webFinger from './webfinger';
|
import webFinger from './webfinger';
|
||||||
@ -67,7 +68,8 @@ function createServer() {
|
|||||||
certs[k] = fs.readFileSync(config.https[k]);
|
certs[k] = fs.readFileSync(config.https[k]);
|
||||||
});
|
});
|
||||||
certs['allowHTTP1'] = true;
|
certs['allowHTTP1'] = true;
|
||||||
return http2.createSecureServer(certs, app.callback());
|
//return http2.createSecureServer(certs, app.callback());
|
||||||
|
return https.createServer(certs, app.callback());
|
||||||
} else {
|
} else {
|
||||||
return http.createServer(app.callback());
|
return http.createServer(app.callback());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user