<div dir="ltr"><div>OK, leaving the value blank in a single-node single-machine broker makes sense.<br><br></div>The documentation at <a href="http://www.rabbitmq.com/clustering.html#single-machine">http://www.rabbitmq.com/clustering.html#single-machine</a> says that for a clustered broker with multiple nodes on a single machine, "You must
         ensure that for each invocation you set the environment
         variables <span class="">RABBITMQ_NODENAME</span> and
         <span class="">RABBITMQ_NODE_PORT</span> to suitable values." Should that really say that RABBITMQ_NODENAME is required in all cases, and RABBITMQ_NODE_PORT is required if TCP is enabled but not required if it's not?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 27, 2013 at 9:49 AM, Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just leave RABBITMQ_NODE_PORT blank. The "real" setting is the one in the config file, the environment variables provide a way to override that, if they are set.<br>
<br>
If you want multiple brokers on one machine, each with SSL only, you'll need to set up one config file per broker, and then point to that using RABBITMQ_CONFIG_FILE (see <a href="http://www.rabbitmq.com/relocate.html" target="_blank">http://www.rabbitmq.com/<u></u>relocate.html</a>).<br>
<br>
Cheers, Simon<div class="im"><br>
<br>
On 27/06/13 14:33, Tim Bain wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
So if TCP is disabled via the section you referenced in rabbitmq.config,<br>
then what goes in the environment variable RABBITMQ_NODE_PORT? Is that<br>
value simply ignored if TCP is disabled (so you can set the environment<br>
variable to anything, or just leave it unset)? Do you set it to the SSL<br>
port? Something else?<br>
<br>
And if you have a set of N nodes in a cluster on a single machine, do<br>
you still need to have a different value of RABBITMQ_NODE_PORT for each<br>
instance? (Do you just make it match the SSL port each node is using?)<br>
<br>
Thanks,<br>
Tim<br>
<br>
<br>
On Thu, Jun 27, 2013 at 5:31 AM, Simon MacMullen <<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a><br></div><div class="im">
<mailto:<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>>> wrote:<br>
<br>
You can't disable the TCP listener via environment variables and<br>
hence rabbitmq-env.conf. But you can via the main configuration file<br>
- see tcp_listeners under<br></div>
<a href="http://www.rabbitmq.com/__configure.html#config-items" target="_blank">http://www.rabbitmq.com/__<u></u>configure.html#config-items</a><div class="im"><br>
<<a href="http://www.rabbitmq.com/configure.html#config-items" target="_blank">http://www.rabbitmq.com/<u></u>configure.html#config-items</a>> - just set it<br>
to [].<br>
<br>
Cheers, Simon<br>
<br></div><div class="im">
On 26/06/13 17:50, <a href="mailto:tbain98@gmail.com" target="_blank">tbain98@gmail.com</a> <mailto:<a href="mailto:tbain98@gmail.com" target="_blank">tbain98@gmail.com</a>> wrote:<br>
<br>
I'm new to RabbitMQ, and am a bit confused by some of the<br>
documentation<br>
surrounding TCP vs. SSL configuration.<br>
<br>
I'm trying to set up a broker for which only authenticated SSL-based<br>
connections will be allowed, so I do not want the TCP listener<br>
running.<br>
That seems easy to do for rabbitmq-env.conf, but the documentation<br></div>
<<a href="http://www.rabbitmq.com/__configure.html" target="_blank">http://www.rabbitmq.com/__<u></u>configure.html</a><div class="im"><br>
<<a href="http://www.rabbitmq.com/configure.html" target="_blank">http://www.rabbitmq.com/<u></u>configure.html</a>>> seems to indicate that<br>
RABBITMQ_NODE_PORT is a required property (or at least, it seems<br>
to be<br>
required if you're setting up clustering on a single machine<br></div>
<<a href="http://www.rabbitmq.com/__clustering.html#single-machine" target="_blank">http://www.rabbitmq.com/__<u></u>clustering.html#single-machine</a><br>
<<a href="http://www.rabbitmq.com/clustering.html#single-machine" target="_blank">http://www.rabbitmq.com/<u></u>clustering.html#single-machine</a><u></u>>__>,<div class="im"><br>
which I'm not<br>
doing yet but want the option to do in the future) and that if<br>
it's not<br>
provided, a default will be used.<br>
<br>
Is it possible to configure an SSL-only broker (just one node on a<br>
single machine), and if so, what if anything do you set<br>
RABBITMQ_NODE_PORT to? (Just "RABBITMQ_NODE_PORT=" ?) And<br>
(separate<br>
question) is it possible to configure a single-machine cluster with<br>
multiple nodes, where each node is SSL-only, and again, what do<br>
you set<br>
RABBITMQ_NODE_PORT to for each node?<br>
<br>
Thanks for the help...<br>
Tim<br>
<br>
<br></div>
______________________________<u></u>___________________<br>
rabbitmq-discuss mailing list<br>
rabbitmq-discuss@lists.__<a href="http://rabbitmq.com" target="_blank">rabbi<u></u>tmq.com</a><br>
<mailto:<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@<u></u>lists.rabbitmq.com</a>><br>
<a href="https://lists.rabbitmq.com/__cgi-bin/mailman/listinfo/__rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/__<u></u>cgi-bin/mailman/listinfo/__<u></u>rabbitmq-discuss</a><div class="im"><br>
<<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a>><br>
<br>
<br>
<br>
--<br>
Simon MacMullen<br>
RabbitMQ, Pivotal<br>
<br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, Pivotal<br>
</div></div></blockquote></div><br></div>