diff --git a/apps/server/src/integrations/environment/environment.service.ts b/apps/server/src/integrations/environment/environment.service.ts index f0b548ab..d9ef01ab 100644 --- a/apps/server/src/integrations/environment/environment.service.ts +++ b/apps/server/src/integrations/environment/environment.service.ts @@ -112,7 +112,10 @@ export class EnvironmentService { } getAwsS3ForcePathStyle(): boolean { - return this.configService.get('AWS_S3_FORCE_PATH_STYLE'); + const forcePathStyle = this.configService + .get('AWS_S3_FORCE_PATH_STYLE', 'false') + .toLowerCase(); + return forcePathStyle === 'true'; } getAwsS3Url(): string {