From 8ae2b9f21fa1d2c6a962ae785cca649ae421a69b Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 14 Oct 2024 23:48:31 +0530 Subject: [PATCH] feat: setup minio client --- server/src/storage/mino.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 server/src/storage/mino.ts diff --git a/server/src/storage/mino.ts b/server/src/storage/mino.ts new file mode 100644 index 00000000..b795f2aa --- /dev/null +++ b/server/src/storage/mino.ts @@ -0,0 +1,9 @@ +import { Client } from 'minio'; + +const minioClient = new Client({ + endPoint: process.env.MINIO_ENDPOINT || 'localhost', + port: parseInt(process.env.MINIO_PORT || '9000'), + useSSL: false, + accessKey: process.env.MINIO_ACCESS_KEY || 'minio-access-key', + secretKey: process.env.MINIO_SECRET_KEY || 'minio-secret-key', +});