feat/validate video type before uploading to S3

This commit is contained in:
Marlon Alves
2025-09-01 19:41:56 -03:00
parent 9cdb897a0f
commit 293f655274
4 changed files with 43 additions and 22 deletions

View File

@@ -282,6 +282,7 @@ export type S3 = {
USE_SSL?: boolean;
REGION?: string;
SKIP_POLICY?: boolean;
SAVE_VIDEO: boolean;
};
export type CacheConf = { REDIS: CacheConfRedis; LOCAL: CacheConfLocal };
@@ -653,6 +654,7 @@ export class ConfigService {
USE_SSL: process.env?.S3_USE_SSL === 'true',
REGION: process.env?.S3_REGION,
SKIP_POLICY: process.env?.S3_SKIP_POLICY === 'true',
SAVE_VIDEO: process.env?.S3_SAVE_VIDEO === 'true',
},
AUTHENTICATION: {
API_KEY: {