/
rabbitmq.config
41 lines (41 loc) · 1.08 KB
/
rabbitmq.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[
{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 queue_master_locator %}
{queue_master_locator, <<"{{ queue_master_locator }}">>},
{%- endif %}
{%- if cluster_partition_handling %}
{cluster_partition_handling, {{ cluster_partition_handling }}}
{%- endif %}
]}
].