mirror of
https://github.com/cool-team-official/cool-admin-midway-packages.git
synced 2026-03-17 19:23:30 +00:00
添加aws客户端对minio的支持
This commit is contained in:
parent
076f2da1b3
commit
89e5f9b384
@ -83,7 +83,9 @@ export class CoolFile {
|
|||||||
region,
|
region,
|
||||||
credentials: { accessKeyId, secretAccessKey },
|
credentials: { accessKeyId, secretAccessKey },
|
||||||
// 支持自定义s3服务,如minio等
|
// 支持自定义s3服务,如minio等
|
||||||
endpoint: publicDomain ? publicDomain : `https://s3.${region}.amazonaws.com`,
|
endpoint: publicDomain
|
||||||
|
? publicDomain
|
||||||
|
: `https://s3.${region}.amazonaws.com`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user