projectData and version model added
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import mongoose, { Schema, Connection, Model } from "mongoose";
|
||||
|
||||
import { Client } from "minio";
|
||||
interface ConnectionCache {
|
||||
[key: string]: Connection;
|
||||
}
|
||||
@@ -49,5 +49,12 @@ const MainModel = <T>(
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
export const minioClient = new Client({
|
||||
endPoint: "185.100.212.76", // MinIO server IP or hostname
|
||||
port: 9999, // MinIO server port
|
||||
useSSL: false, // Set to true if SSL is configured
|
||||
accessKey: "sabarinathan", // Access key
|
||||
secretKey: "sabarinathan",
|
||||
});
|
||||
|
||||
export default MainModel;
|
||||
|
||||
Reference in New Issue
Block a user