Files
parcer/server/src/storage/mino.ts

11 lines
352 B
TypeScript
Raw Normal View History

2024-10-14 23:48:31 +05:30
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',
});
2024-10-14 23:51:15 +05:30
export default minioClient;