mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-27 05:43:02 +00:00
Update index.ts
This commit is contained in:
parent
4cc38ce026
commit
e49f7f40bc
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue