mirror of
https://github.com/usememos/memos.git
synced 2025-01-26 23:18:46 +08: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:
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{
|
||||
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…
Reference in a new issue