Make rabbitMQ per events

This commit is contained in:
Judson Cairo
2024-03-04 12:16:26 -03:00
parent 6b930058d1
commit 7dd589fb6c
6 changed files with 73 additions and 39 deletions

View File

@@ -71,6 +71,7 @@ export type Redis = {
export type Rabbitmq = {
ENABLED: boolean;
GLOBAL_EVENT_QUEUE: boolean;
URI: string;
};
@@ -282,6 +283,7 @@ export class ConfigService {
},
RABBITMQ: {
ENABLED: process.env?.RABBITMQ_ENABLED === 'true',
GLOBAL_EVENT_QUEUE: process.env?.RABBITMQ_GLOBAL_EVENT_QUEUE === 'true',
URI: process.env.RABBITMQ_URI || '',
},
SQS: {