Skip to content

Commit

Permalink
remove compression
Browse files Browse the repository at this point in the history
  • Loading branch information
mertalev committed Mar 6, 2024
1 parent ad1449b commit 5242a0b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 140 deletions.
136 changes: 1 addition & 135 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"chokidar": "^3.5.3",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"compression": "^1.7.4",
"cookie-parser": "^1.4.6",
"exiftool-vendored": "~24.5.0",
"exiftool-vendored.pl": "12.76",
Expand Down Expand Up @@ -89,7 +88,6 @@
"@types/archiver": "^6.0.0",
"@types/async-lock": "^1.4.2",
"@types/bcrypt": "^5.0.0",
"@types/compression": "^1.7.5",
"@types/cookie-parser": "^1.4.3",
"@types/express": "^4.17.17",
"@types/fluent-ffmpeg": "^2.1.21",
Expand Down Expand Up @@ -165,4 +163,4 @@
"volta": {
"node": "20.11.1"
}
}
}
2 changes: 0 additions & 2 deletions server/src/immich/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { ImmichLogger } from '@app/infra/logger';
import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from '@nestjs/platform-express';
import { json } from 'body-parser';
import compression from 'compression';
import cookieParser from 'cookie-parser';
import { AppModule } from './app.module';
import { AppService } from './app.service';
Expand All @@ -20,7 +19,6 @@ export async function bootstrap() {
app.set('trust proxy', ['loopback', 'linklocal', 'uniquelocal']);
app.set('etag', 'strong');
app.use(cookieParser());
app.use(compression({ level: 1 }));
app.use(json({ limit: '10mb' }));
if (isDev) {
app.enableCors();
Expand Down

0 comments on commit 5242a0b

Please sign in to comment.