refactor: rabbitmq implement

This commit is contained in:
Methapon2001 2023-11-27 09:45:30 +07:00
parent 24350a11a4
commit 3fc70daed0
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
12 changed files with 676 additions and 545 deletions

View file

@ -0,0 +1,11 @@
import * as Minio from "minio";
const minioClient = new Minio.Client({
endPoint: process.env.MINIO_HOST ?? "localhost",
port: process.env.MINIO_PORT ? +process.env.MINIO_PORT : undefined,
useSSL: !!process.env.MINIO_SSL,
accessKey: process.env.MINIO_ACCESS_KEY ?? "",
secretKey: process.env.MINIO_SECRET_KEY ?? "",
});
export default minioClient;