0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00

fix(core): allow http1 in core services (#4823)

This commit is contained in:
Charles Zhao 2023-11-07 11:39:26 +08:00 committed by GitHub
parent 00017418c3
commit c65dcb9552
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ export default async function initApp(app: Koa): Promise<void> {
if (isHttpsEnabled && httpsCert && httpsKey) {
const createHttp2Server = async () =>
http2.createSecureServer(
{ cert: await fs.readFile(httpsCert), key: await fs.readFile(httpsKey) },
{ cert: await fs.readFile(httpsCert), key: await fs.readFile(httpsKey), allowHTTP1: true },
app.callback()
);