40 lines
1000 B
Plaintext
40 lines
1000 B
Plaintext
[
|
|
{rabbit, [
|
|
{collect_statistics_interval, 30000},
|
|
{%- if ssl_only %}
|
|
{tcp_listeners, []},
|
|
{% else %}
|
|
{tcp_listeners, [5672]},
|
|
{%- endif %}
|
|
{%- if connection_backlog %}
|
|
{tcp_listen_options, [{backlog, {{connection_backlog}}}]},
|
|
{%- endif %}
|
|
{%- if ssl_port %}
|
|
{ssl_listeners, [{{ ssl_port }}]},
|
|
{%- endif %}
|
|
{%- if ssl_mode == "on" or ssl_mode == "only" %}
|
|
{ssl_options, [
|
|
{verify, verify_peer},
|
|
{%- if ssl_client %}
|
|
{fail_if_no_peer_cert, true},
|
|
{% else %}
|
|
{fail_if_no_peer_cert, false},
|
|
{%- endif %}
|
|
{%- if ssl_ca_file %}
|
|
{cacertfile, "{{ ssl_ca_file }}"},
|
|
{%- endif %}
|
|
{%- if ssl_cert_file %}
|
|
{certfile, "{{ ssl_cert_file }}"},
|
|
{%- endif %}
|
|
{%- if ssl_key_file %}
|
|
{keyfile, "{{ ssl_key_file }}"}
|
|
{%- endif %}
|
|
]},
|
|
{%- endif %}
|
|
|
|
{%- if cluster_partition_handling %}
|
|
{cluster_partition_handling, {{ cluster_partition_handling }}}
|
|
{%- endif %}
|
|
]}
|
|
].
|