diff --git a/docs/modules/ROOT/pages/tmail-backend/configure/index.adoc b/docs/modules/ROOT/pages/tmail-backend/configure/index.adoc index a61e0216cd..ec0bc05507 100644 --- a/docs/modules/ROOT/pages/tmail-backend/configure/index.adoc +++ b/docs/modules/ROOT/pages/tmail-backend/configure/index.adoc @@ -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 diff --git a/tmail-backend/guice/blob-guice/src/main/java/com/linagora/tmail/blob/guice/SecondaryS3BlobStoreConfigurationReader.java b/tmail-backend/guice/blob-guice/src/main/java/com/linagora/tmail/blob/guice/SecondaryS3BlobStoreConfigurationReader.java index 79b77991fb..08cd6fa141 100644 --- a/tmail-backend/guice/blob-guice/src/main/java/com/linagora/tmail/blob/guice/SecondaryS3BlobStoreConfigurationReader.java +++ b/tmail-backend/guice/blob-guice/src/main/java/com/linagora/tmail/blob/guice/SecondaryS3BlobStoreConfigurationReader.java @@ -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";