This commit is contained in:
smfahim25 2025-03-19 14:48:48 +06:00
parent a525e9388d
commit 657a8341c6

View file

@ -3,8 +3,7 @@ import { ENV } from "../config/env";
export const minioClient = new Client({
endPoint: ENV.MINIO_ENDPOINT!.replace("http://", "").replace("https://", ""),
port: ENV.MINIO_PORT,
useSSL: false,
useSSL: ENV.MINIO_ENDPOINT!.startsWith("https"),
accessKey: ENV.MINIO_ACCESS_KEY,
secretKey: ENV.MINIO_SECRET_KEY,
});