Closed rajdip-b closed 3 months ago
/attempt
Assigned the issue to you!
@HarshPatel5940 hey bro, this issue is now slightly updated. There's a providers module. Please add the s3 stuff in that module and export it the way we are exporting redis. You can take redis.provider.ts as a reference.
@HarshPatel5940 hey bro, this issue is now slightly updated. There's a providers module. Please add the s3 stuff in that module and export it the way we are exporting redis. You can take redis.provider.ts as a reference.
Ok, rajdip. 👍 I will look into it.
:tada: This issue has been resolved in version 1.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Description
We would like to use S3 compatible storage to store our BLOB data. For this, we first need to create a provider that will give us the required s3 client.
Solution
docker-compose.yaml
file to create a minio server in its configurationminio.service.ts
file under theconfig
moduleNote that, we want to load the minio service conditionally, that is, if any of the environmental variables are not specified, we don't want to initialize it. To accomplish this, you can maintain a flag in the minio service file. Before calling any upload/fetch/delete function, you can check if the flag is set to true. If not, just skip the operation.
Additional context
References: