feat: setup minio client

This commit is contained in:
karishmas6
2024-10-14 23:48:31 +05:30
parent 06baca2753
commit 8ae2b9f21f

View File

@@ -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',
});