RamblingCookieMonster / RabbitMQTools

PowerShell module containing cmdlets to manage RabbitMQ.
http://ramblingcookiemonster.github.io/RabbitMQ-Intro/
MIT License
31 stars 22 forks source link

Missing port number before /api in URLs #23

Closed ghost closed 7 years ago

ghost commented 7 years ago

Default management port is 15672 which should be included in the URLs as in MariuszWojcik's implementation.

RamblingCookieMonster commented 7 years ago

Hi there!

This was intentional and one of reasons for the fork (you can see a list of initial changes here). Hard coding the port makes it tough for folks who use a different port, for example.

Cheers!

ghost commented 7 years ago

Hi, thanks for the clarification.

How should one be using this then for the default case when you do have it on port 15672?

ghost commented 7 years ago

Never mind, I'll go with the original implementation from Mariusz.

RamblingCookieMonster commented 7 years ago

No problem!

You just include it in the BaseUri parameter:

-BaseUri "https://rabbitmq.contoso.com:15671" or -BaseUri "http://rabbitmq.contoso.com:15672", for example.

The SSL bit was important for us, hence the change

Cheers!