refactor: rabbitmq implement
This commit is contained in:
parent
24350a11a4
commit
3fc70daed0
12 changed files with 676 additions and 545 deletions
11
Services/server/src/minio/index.ts
Normal file
11
Services/server/src/minio/index.ts
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue