mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
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:
@@ -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
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user