nestjs-rmq icon indicating copy to clipboard operation
nestjs-rmq copied to clipboard

RabbitMQ URI

Open l3roken opened this issue 3 years ago • 3 comments

Is it possible to create the connection via the RabbitMQ URI? i.e. amqp://user:pass@host:10000/vhost

l3roken avatar Jan 07 '22 00:01 l3roken

@l3roken, hi! With a single string, no, but you can pass all parameters as individual fields. Can you describe case is using single url instead of structured parts?

AlariCode avatar Jan 07 '22 05:01 AlariCode

@l3roken, hi! With a single string, no, but you can pass all parameters as individual fields. Can you describe case is using single url instead of structured parts?

It's just a little more config for us but not a huge deal.

We use vault to manage our secrets and it just is a difference between 1 environment variable vs 3 or 4.

The nestjs microservice integration with RMQ allows a single connection string and my company standardized using a single line.

Really not a huge deal just was curious if it was supported.

l3roken avatar Jan 07 '22 19:01 l3roken

@l3roken I can add support for full URL if needed.

AlariCode avatar Jan 11 '22 07:01 AlariCode