feat: add `HostnameImmutable` to aws endpoint config (#1230)

* add config to support S3-compatible urls like minio

* add comment for HostnameImmutable

* fix linting
pull/1526/head
Alex Zhao 2 years ago committed by GitHub
parent 630d84348e
commit d0c40490a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -33,6 +33,9 @@ func NewClient(ctx context.Context, config *Config) (*Client, error) {
return aws.Endpoint{
URL: config.EndPoint,
SigningRegion: config.Region,
// For some s3-compatible object stores, converting the hostname is not required,
// and not setting this option will result in not being able to access the corresponding object store address.
HostnameImmutable: true,
}, nil
})

Loading…
Cancel
Save