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:
parent
00017418c3
commit
c65dcb9552
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ export default async function initApp(app: Koa): Promise<void> {
|
||||||
if (isHttpsEnabled && httpsCert && httpsKey) {
|
if (isHttpsEnabled && httpsCert && httpsKey) {
|
||||||
const createHttp2Server = async () =>
|
const createHttp2Server = async () =>
|
||||||
http2.createSecureServer(
|
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()
|
app.callback()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue