feat: add HostnameImmutable to aws endpoint config (#1230)
* add config to support S3-compatible urls like minio * add comment for HostnameImmutable * fix linting
This commit is contained in:
parent
630d84348e
commit
d0c40490a7
1 changed files with 3 additions and 0 deletions
|
|
@ -33,6 +33,9 @@ func NewClient(ctx context.Context, config *Config) (*Client, error) {
|
||||||
return aws.Endpoint{
|
return aws.Endpoint{
|
||||||
URL: config.EndPoint,
|
URL: config.EndPoint,
|
||||||
SigningRegion: config.Region,
|
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
|
}, nil
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue