We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd39393 commit d6bf807Copy full SHA for d6bf807
utils/src/main/java/com/cloud/utils/storage/S3/S3Utils.java
@@ -114,6 +114,8 @@ public static TransferManager getTransferManager(final ClientOptions clientOptio
114
LOGGER.debug(format("Setting the end point for S3 client with access key %1$s to %2$s.", clientOptions.getAccessKey(), clientOptions.getEndPoint()));
115
116
client.setEndpoint(clientOptions.getEndPoint());
117
+ // Enable path-style access for S3-compatible storage
118
+ client.setS3ClientOptions(com.amazonaws.services.s3.S3ClientOptions.builder().setPathStyleAccess(true).build());
119
}
120
121
TRANSFERMANAGER_ACCESSKEY_MAP.put(clientOptions.getAccessKey(), new TransferManager(client));
0 commit comments