use path style

This commit is contained in:
sebastian-heinz
2025-05-06 10:28:16 +08:00
parent a77c24f61f
commit 42013d365b
3 changed files with 13 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ func (s *S3Proxy) getClientWithCtx(ctx context.Context) (*s3.Client, error) {
if s.endpoint != "" {
return s3.NewFromConfig(cfg, func(o *s3.Options) {
o.BaseEndpoint = &s.endpoint
o.UsePathStyle = s.usePathStyle
}), nil
}