mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
12 lines
480 B
TypeScript
12 lines
480 B
TypeScript
import { registerAs } from '@nestjs/config';
|
|
|
|
/**
|
|
* RabbitMQ connection for the payment-event consumer (payment microservice -> freight).
|
|
* Points at the dedicated `payment` vhost on the shared broker.
|
|
*/
|
|
export default registerAs('rabbitmq', () => ({
|
|
url: process.env.PAYMENT_RABBITMQ_URL ?? 'amqp://localhost:5672/payment',
|
|
/** Max unacked payment events held by this consumer at once. */
|
|
prefetch: parseInt(process.env.PAYMENT_EVENTS_PREFETCH ?? '10', 10),
|
|
}));
|