mirror of
https://github.com/zoriya/flood.git
synced 2026-05-31 10:22:44 +00:00
fix(server): @fastify/express doesn't work with http2 (#705)
This commit is contained in:
@@ -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),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user