Skip to content

Commit

Permalink
πŸ› fix: temporarily disable S3 client integrity check for Cloudflare R2 (
Browse files Browse the repository at this point in the history
lobehub#5479)

* πŸ› fix: S3 client integrity check for Cloudflare R2

related issues:
cloudflare/cloudflare-docs#19236
aws/aws-sdk-js-v3#6810

* Update index.ts

---------

Co-authored-by: Arvin Xu <[email protected]>
  • Loading branch information
2 people authored and gecsp committed Jan 22, 2025
1 parent 5757f66 commit 0508604
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/modules/S3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export class S3 {
endpoint: fileEnv.S3_ENDPOINT,
forcePathStyle: fileEnv.S3_ENABLE_PATH_STYLE,
region: fileEnv.S3_REGION || DEFAULT_S3_REGION,
// refs: https://github.com/lobehub/lobe-chat/pull/5479
requestChecksumCalculation: 'WHEN_REQUIRED',
responseChecksumValidation: 'WHEN_REQUIRED',
});
}

Expand Down

0 comments on commit 0508604

Please sign in to comment.