mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
fix(server): increase json body payload limit (#941)
This commit is contained in:
parent
fe4b307fe6
commit
8a9b0347bb
1 changed files with 2 additions and 0 deletions
|
@ -8,12 +8,14 @@ import path from 'path';
|
|||
import { AppModule } from './app.module';
|
||||
import { serverVersion } from './constants/server_version.constant';
|
||||
import { RedisIoAdapter } from './middlewares/redis-io.adapter.middleware';
|
||||
import { json } from 'body-parser';
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create<NestExpressApplication>(AppModule);
|
||||
|
||||
app.set('trust proxy');
|
||||
app.use(cookieParser());
|
||||
app.use(json({ limit: '10mb' }));
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
app.enableCors();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue