Skip to content

Commit

Permalink
fix(backend/object-storage): disable data integrity protections (#895)
Browse files Browse the repository at this point in the history
Cloudflare R2 does not support 'x-amz-checksum-*'
  • Loading branch information
u1-liquid authored Jan 16, 2025
1 parent 86209cf commit bcb85f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/core/S3Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export class S3Service {
tls: meta.objectStorageUseSSL,
forcePathStyle: meta.objectStorageEndpoint ? meta.objectStorageS3ForcePathStyle : false, // AWS with endPoint omitted
requestHandler: new NodeHttpHandler(handlerOption),
requestChecksumCalculation: 'WHEN_REQUIRED',
responseChecksumValidation: 'WHEN_REQUIRED',
});
}

Expand Down

0 comments on commit bcb85f2

Please sign in to comment.