mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 02:13:08 +02:00
regionが空文字列のときはundefinedとする (#10410)
This commit is contained in:
parent
772e05e835
commit
31cc188bbd
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ export class S3Service {
|
||||||
accessKeyId: meta.objectStorageAccessKey,
|
accessKeyId: meta.objectStorageAccessKey,
|
||||||
secretAccessKey: meta.objectStorageSecretKey,
|
secretAccessKey: meta.objectStorageSecretKey,
|
||||||
} : undefined,
|
} : undefined,
|
||||||
region: meta.objectStorageRegion ?? undefined,
|
region: meta.objectStorageRegion ? meta.objectStorageRegion : undefined, // 空文字列もundefinedにするため ?? は使わない
|
||||||
tls: meta.objectStorageUseSSL,
|
tls: meta.objectStorageUseSSL,
|
||||||
forcePathStyle: meta.objectStorageEndpoint ? meta.objectStorageS3ForcePathStyle : false, // AWS with endPoint omitted
|
forcePathStyle: meta.objectStorageEndpoint ? meta.objectStorageS3ForcePathStyle : false, // AWS with endPoint omitted
|
||||||
requestHandler: new NodeHttpHandler(handlerOption),
|
requestHandler: new NodeHttpHandler(handlerOption),
|
||||||
|
|
Loading…
Reference in a new issue