Page MenuHomePhabricator

D9305.diff
No OneTemporary

D9305.diff

diff --git a/keyserver/package.json b/keyserver/package.json
--- a/keyserver/package.json
+++ b/keyserver/package.json
@@ -51,6 +51,7 @@
"JSONStream": "^1.3.5",
"bad-words": "^3.0.4",
"common-tags": "^1.7.2",
+ "compression": "^1.7.4",
"cookie-parser": "^1.4.3",
"dateformat": "^3.0.3",
"detect-browser": "^4.0.4",
diff --git a/keyserver/src/keyserver.js b/keyserver/src/keyserver.js
--- a/keyserver/src/keyserver.js
+++ b/keyserver/src/keyserver.js
@@ -2,6 +2,7 @@
import olm from '@commapp/olm';
import cluster from 'cluster';
+import compression from 'compression';
import cookieParser from 'cookie-parser';
import crypto from 'crypto';
import express from 'express';
@@ -116,6 +117,7 @@
if (!cluster.isMaster || isCPUProfilingEnabled) {
const server = express();
+ server.use(compression());
expressWs(server);
server.use(express.json({ limit: '250mb' }));
server.use(cookieParser());

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 12:39 AM (21 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2587063
Default Alt Text
D9305.diff (958 B)

Event Timeline