feat: add Redis cache, gzip, CI/CD via Gitea self-hosted runner
This commit is contained in:
@@ -2,6 +2,7 @@ import { NestFactory } from '@nestjs/core';
|
||||
import { ValidationPipe } from '@nestjs/common';
|
||||
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
|
||||
import * as helmet from 'helmet';
|
||||
import compression = require('compression');
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
async function bootstrap() {
|
||||
@@ -12,6 +13,7 @@ async function bootstrap() {
|
||||
app.enableCors({ origin: '*' });
|
||||
|
||||
app.use(helmet.default());
|
||||
app.use(compression());
|
||||
|
||||
app.useGlobalPipes(
|
||||
new ValidationPipe({
|
||||
|
||||
Reference in New Issue
Block a user