Slave/prod deploy #12

Merged
nobswebdev merged 6 commits from slave/prod-deploy into master 2026-10-28 23:22:15 +00:00
2 changed files with 3 additions and 4 deletions
Showing only changes of commit 915d62f09a - Show all commits
+2
View File
@@ -57,6 +57,8 @@ async function bootstrap() {
credentials: true
});
app.set('trust proxy', 1);
await app.listen(port);
}
@@ -1,4 +1,4 @@
import { Controller, Get, Header, Param, StreamableFile } from '@nestjs/common';
import { Controller, Get, Param, StreamableFile } from '@nestjs/common';
import { HotlinkImageParamsDto } from '../dto/HotlinkImageParamsDto';
import { UploadService } from '../services/UploadService';
@@ -7,9 +7,6 @@ export class HotlinkImageController {
constructor(private readonly uploadService: UploadService) {}
@Get(':id/:secret')
@Header('X-Content-Type-Options', 'nosniff')
@Header('Content-Security-Policy', 'sandbox')
@Header('Referrer-Policy', 'no-referrer')
async getImage(@Param() params: HotlinkImageParamsDto): Promise<StreamableFile> {
const { body, mimeType } = await this.uploadService.getHotlinkImage(params.id, params.secret);