Skip to content

Commit

Permalink
Merge pull request #8 from RoccoCocco/main
Browse files Browse the repository at this point in the history
Feature: Add endpoint configuration for AWS S3
  • Loading branch information
underscope authored Jul 24, 2024
2 parents 01cc825 + 00d924a commit 8aa44a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tailor-cms/garment",
"type": "module",
"version": "0.17.0-beta.1",
"version": "0.17.0-beta.2",
"packageManager": "pnpm@7.2.1",
"description": "",
"author": "Damir P. <underscope@gmail.com>",
Expand Down
2 changes: 2 additions & 0 deletions src/storage/providers/aws/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class Amazon implements FileStorage {
this.#client = new S3({
accessKeyId: storage.aws.keyId,
secretAccessKey: storage.aws.secretKey,
endpoint: storage.aws.endpoint,
s3ForcePathStyle: storage.aws.forcePathStyle,
region: storage.aws.region,
signatureVersion: 'v4',
apiVersion: '2006-03-01',
Expand Down
4 changes: 3 additions & 1 deletion src/storage/providers/aws/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export interface AWSStorageConfig {
endpoint?: string
forcePathStyle?: boolean
keyId: string
secretKey: string
region: string
secretKey: string
}

0 comments on commit 8aa44a6

Please sign in to comment.