minio-worker/minio.ts
2025-04-19 22:17:28 +03:00

15 lines
317 B
TypeScript

// worker/minio.ts
import { Client } from "minio";
import dotenv from "dotenv";
dotenv.config();
export function getMinioClient() {
return new Client({
endPoint: process.env.MINIO_ENDPOINT!,
useSSL: true,
accessKey: process.env.MINIO_ACCESS_KEY!,
secretKey: process.env.MINIO_SECRET_KEY!,
});
}