Skip to content

Commit

Permalink
ISSUE-1307 Allow to specify secondary bucket prefix
Browse files Browse the repository at this point in the history
Allow to have a different name for secondary bucket which benefit a same account usage for primary and secondary bucket.
  • Loading branch information
quantranhong1999 committed Nov 15, 2024
1 parent 6f18936 commit 49e01b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/tmail-backend/configure/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ Specified to TMail backend, we can configure the following configurations in the
| S3 service endpoint
| objectstorage.s3.secondary.region
| S3 region
| objectstorage.s3.secondary.bucketPrefix
| The prefix of bucket names for the secondary blob store.
| objectstorage.s3.secondary.accessKeyId
| https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys[S3 access key id]
| objectstorage.s3.secondary.secretKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

public class SecondaryS3BlobStoreConfigurationReader {
private static final String OBJECTSTORAGE_NAMESPACE = "objectstorage.namespace";
private static final String OBJECTSTORAGE_BUCKET_PREFIX = "objectstorage.bucketPrefix";
private static final String OBJECTSTORAGE_BUCKET_PREFIX = "objectstorage.s3.secondary.bucketPrefix";
private static final String OBJECTSTORAGE_S3_REGION = "objectstorage.s3.secondary.region";
private static final String OBJECTSTORAGE_S3_HTTP_CONCURRENCY = "objectstorage.s3.http.concurrency";
private static final String OBJECTSTORAGE_S3_READ_TIMEOUT = "objectstorage.s3.read.timeout";
Expand Down

0 comments on commit 49e01b7

Please sign in to comment.