feat: support path style of s3 url (#4304)

Signed-off-by: ComixHe <ComixHe1895@outlook.com>
This commit is contained in:
Comix
2025-01-21 10:02:21 +00:00
committed by GitHub
parent 702c092289
commit d9a92b2ef8
8 changed files with 178 additions and 140 deletions

View File

@ -31,6 +31,7 @@ func NewClient(ctx context.Context, s3Config *storepb.StorageS3Config) (*Client,
client := s3.NewFromConfig(cfg, func(o *s3.Options) {
o.BaseEndpoint = aws.String(s3Config.Endpoint)
o.UsePathStyle = s3Config.UsePathStyle
})
return &Client{
Client: client,