From fb84cf055f1e28f5d8fe36c5bda62c9a33d991a2 Mon Sep 17 00:00:00 2001 From: "Ch3rry B@ry" Date: Wed, 6 Dec 2023 14:31:54 +0530 Subject: [PATCH] fix(indexer): use s3ForcePathStyle with s3Endpoint --- apps/indexer-balance/src/services/stream.ts | 1 + apps/indexer-base/src/services/stream.ts | 1 + apps/indexer-events/src/services/stream.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/apps/indexer-balance/src/services/stream.ts b/apps/indexer-balance/src/services/stream.ts index 742226dd..343e8f51 100644 --- a/apps/indexer-balance/src/services/stream.ts +++ b/apps/indexer-balance/src/services/stream.ts @@ -16,6 +16,7 @@ const lakeConfig: types.LakeConfig = { }; if (config.s3Endpoint) { + lakeConfig.s3ForcePathStyle = true; lakeConfig.s3Endpoint = config.s3Endpoint; } diff --git a/apps/indexer-base/src/services/stream.ts b/apps/indexer-base/src/services/stream.ts index f15a7169..e335d3d6 100644 --- a/apps/indexer-base/src/services/stream.ts +++ b/apps/indexer-base/src/services/stream.ts @@ -22,6 +22,7 @@ const lakeConfig: types.LakeConfig = { }; if (config.s3Endpoint) { + lakeConfig.s3ForcePathStyle = true; lakeConfig.s3Endpoint = config.s3Endpoint; } diff --git a/apps/indexer-events/src/services/stream.ts b/apps/indexer-events/src/services/stream.ts index 2bb7dcd5..f4078d03 100644 --- a/apps/indexer-events/src/services/stream.ts +++ b/apps/indexer-events/src/services/stream.ts @@ -16,6 +16,7 @@ const lakeConfig: types.LakeConfig = { }; if (config.s3Endpoint) { + lakeConfig.s3ForcePathStyle = true; lakeConfig.s3Endpoint = config.s3Endpoint; }