fix(server): @fastify/express doesn't work with http2 (#705)

This commit is contained in:
Trim21
2023-12-12 02:31:29 +08:00
committed by GitHub
parent e523a294e7
commit 40eac6638b
-2
View File
@@ -24,9 +24,7 @@ const startWebServer = async () => {
instance = fastify({
bodyLimit: 100 * 1024 * 1024,
trustProxy: 'loopback',
http2: true,
https: {
allowHTTP1: true,
key: fs.readFileSync(config.sslKey),
cert: fs.readFileSync(config.sslCert),
},