feat: add minio client
This commit is contained in:
parent
ed75115651
commit
f0549bedb6
1 changed files with 11 additions and 0 deletions
11
src/services/minio.ts
Normal file
11
src/services/minio.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { Client } from "minio";
|
||||||
|
|
||||||
|
const minio = new Client({
|
||||||
|
endPoint: process.env.MINIO_HOST ?? "localhost",
|
||||||
|
port: process.env.MINIO_PORT ? +process.env.MINIO_PORT : undefined,
|
||||||
|
useSSL: /true/.test(process.env.MINIO_SSL || "false"),
|
||||||
|
accessKey: process.env.MINIO_ACCESS_KEY ?? "",
|
||||||
|
secretKey: process.env.MINIO_SECRET_KEY ?? "",
|
||||||
|
});
|
||||||
|
|
||||||
|
export default minio;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue