1
0
forked from mirror/misskey

Update index.ts

This commit is contained in:
tamaina 2018-04-13 23:04:22 +09:00 committed by GitHub
parent 4cc38ce026
commit e49f7f40bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,7 @@ function createServer() {
Object.keys(config.https).forEach(k => { Object.keys(config.https).forEach(k => {
certs[k] = fs.readFileSync(config.https[k]); certs[k] = fs.readFileSync(config.https[k]);
}); });
certs['allowHTTP1'] = true
return http2.createSecureServer(certs, app.callback()); return http2.createSecureServer(certs, app.callback());
} else { } else {
return http.createServer(app.callback()); return http.createServer(app.callback());