feat: marketplace modules and isolated container management
This commit is contained in:
@@ -4,6 +4,7 @@ import { NestExpressApplication } from '@nestjs/platform-express';
|
||||
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
|
||||
import cookieParser from 'cookie-parser';
|
||||
import helmet from 'helmet';
|
||||
import type { NextFunction, Request, Response } from 'express';
|
||||
import { AppModule } from './app.module';
|
||||
import { AllExceptionsFilter } from './common/filters/all-exceptions.filter';
|
||||
import { loadConfiguration } from './config/config.tokens';
|
||||
@@ -26,6 +27,10 @@ async function bootstrap(): Promise<void> {
|
||||
|
||||
app.use(helmet());
|
||||
app.use(cookieParser());
|
||||
app.use('/api', (_request: Request, response: Response, next: NextFunction) => {
|
||||
response.setHeader('Cache-Control', 'no-store');
|
||||
next();
|
||||
});
|
||||
|
||||
if (config.security.behindProxy) {
|
||||
app.set('trust proxy', 1);
|
||||
@@ -46,4 +51,4 @@ async function bootstrap(): Promise<void> {
|
||||
logger.log(`Management-Backend läuft auf Port ${config.port}`);
|
||||
}
|
||||
|
||||
void bootstrap();
|
||||
void bootstrap();
|
||||
|
||||
Reference in New Issue
Block a user