summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2013-09-19 11:27:01 +0100
committerTim Watson <tim@rabbitmq.com>2013-09-19 11:27:01 +0100
commit4c44043ec38d27f08f18acce04e7a19645c40a10 (patch)
tree52ba16c5b73f04b1a266956a0bf3a8175d59b1e5
parent89650cc6f50eb97c5c7e62f06721c2fc3665a7ec (diff)
downloadrabbitmq-server-4c44043ec38d27f08f18acce04e7a19645c40a10.tar.gz
cosmetic
-rw-r--r--docs/rabbitmq.sample.config294
1 files changed, 149 insertions, 145 deletions
diff --git a/docs/rabbitmq.sample.config b/docs/rabbitmq.sample.config
index cf6e70ea..178ce751 100644
--- a/docs/rabbitmq.sample.config
+++ b/docs/rabbitmq.sample.config
@@ -5,125 +5,126 @@
%% See http://www.rabbitmq.com/configure.html for details.
%% ----------------------------------------------------------------------------
- {rabbit, [%%
- %% Network Connectivity
- %%
-
- %% Configure AMQP to listen on ports.
- %% {tcp_listeners, [5672, 5673]},
-
- %% Socket options.
- %%
- %% See (http://www.erlang.org/doc/man/inet.html#setopts-2) for
- %% further documentation.
- %%
- %% {tcp_listen_options, [binary,
- %% {packet, raw},
- %% {reuseaddr, true},
- %% {backlog, 128},
- %% {nodelay, true},
- %% {exit_on_close, false}]},
+ {rabbit,
+ [%%
+ %% Network Connectivity
+ %%
- %% Configure SSL to listen on ports.
- %% {ssl_listeners, [5674, 5675]},
+ %% Configure AMQP to listen on ports.
+ %% {tcp_listeners, [5672, 5673]},
- %% SSL options (see http://www.rabbitmq.com/ssl.html).
- %% {ssl_options, [{cacertfile,"/path/to/testca/cacert.pem"},
- %% {certfile,"/path/to/server/cert.pem"},
- %% {keyfile,"/path/to/server/key.pem"},
- %% {verify, verify_peer},
- %% {fail_if_no_peer_cert, true}]},
+ %% Socket options.
+ %%
+ %% See (http://www.erlang.org/doc/man/inet.html#setopts-2) for
+ %% further documentation.
+ %%
+ %% {tcp_listen_options, [binary,
+ %% {packet, raw},
+ %% {reuseaddr, true},
+ %% {backlog, 128},
+ %% {nodelay, true},
+ %% {exit_on_close, false}]},
- %% Max permissible size of a frame (in bytes).
- %% {frame_max, 131072},
+ %% Configure SSL to listen on ports.
+ %% {ssl_listeners, [5674, 5675]},
- %% Heartbeat delay (in seconds).
- %% {heartbeat, 600},
+ %% SSL options (see http://www.rabbitmq.com/ssl.html).
+ %% {ssl_options, [{cacertfile,"/path/to/testca/cacert.pem"},
+ %% {certfile,"/path/to/server/cert.pem"},
+ %% {keyfile,"/path/to/server/key.pem"},
+ %% {verify, verify_peer},
+ %% {fail_if_no_peer_cert, true}]},
- %% Let the log level for connection logging.
- %% {log_levels, [{connection, info}]},
+ %% Max permissible size of a frame (in bytes).
+ %% {frame_max, 131072},
- %%
- %% Security/AAA & Default VHost/User
- %%
+ %% Heartbeat delay (in seconds).
+ %% {heartbeat, 600},
- %% Set available auth mechanisms.
- %% {auth_mechanisms, ['PLAIN', 'AMQPLAIN']},
+ %% Let the log level for connection logging.
+ %% {log_levels, [{connection, info}]},
- %% To enable auth-mechanism-ssl.
- %% {auth_mechanisms, ['EXTERNAL']},
+ %%
+ %% Security/AAA & Default VHost/User
+ %%
- %% Set Available authentication databases.
- %% {auth_backends, [rabbit_auth_backend_internal]},
+ %% Set available auth mechanisms.
+ %% {auth_mechanisms, ['PLAIN', 'AMQPLAIN']},
- %% Or to enable the LDAP backend.
- %% {auth_backends, [rabbit_auth_backend_ldap]},
+ %% To enable auth-mechanism-ssl.
+ %% {auth_mechanisms, ['EXTERNAL']},
- %% Virtual host to create on first start.
- %% {default_vhost, <<"/">>},
+ %% Set Available authentication databases.
+ %% {auth_backends, [rabbit_auth_backend_internal]},
- %% User name to create on first start.
- %% {default_user, <<"guest">>},
+ %% Or to enable the LDAP backend.
+ %% {auth_backends, [rabbit_auth_backend_ldap]},
- %% Password for default user.
- %% {default_pass, <<"guest">>},
+ %% Virtual host to create on first start.
+ %% {default_vhost, <<"/">>},
- %% Tags for default user.
- %% {default_user_tags, [administrator]},
+ %% User name to create on first start.
+ %% {default_user, <<"guest">>},
- %% Permissions for default user.
- %% {default_permissions, [<<".*">>, <<".*">>, <<".*">>]},
+ %% Password for default user.
+ %% {default_pass, <<"guest">>},
- %%
- %% Resource Limits & Flow Control
- %%
- %% See http://www.rabbitmq.com/memory.html for more details.
- %%
+ %% Tags for default user.
+ %% {default_user_tags, [administrator]},
- %% Memory-based Flow Control threshold.
- %% {vm_memory_high_watermark, 0.4},
+ %% Permissions for default user.
+ %% {default_permissions, [<<".*">>, <<".*">>, <<".*">>]},
- %% Set disk free limit (in bytes).
- %% {disk_free_limit, 1000000000},
+ %%
+ %% Resource Limits & Flow Control
+ %%
+ %% See http://www.rabbitmq.com/memory.html for more details.
+ %%
- %% Alternatively, set disk free limit relative to total RAM.
- %% {disk_free_limit, {mem_relative, 1.0}},
+ %% Memory-based Flow Control threshold.
+ %% {vm_memory_high_watermark, 0.4},
- %% Override file handle limits.
- %% {file_handles_high_watermark, 10000000},
+ %% Set disk free limit (in bytes).
+ %% {disk_free_limit, 1000000000},
- %%
- %% Misc/Advanced Options:
- %%
- %% NB: Change these only if you understand what you are doing!
- %%
+ %% Alternatively, set disk free limit relative to total RAM.
+ %% {disk_free_limit, {mem_relative, 1.0}},
- %% How to respond to cluster partitions.
- %%
- %% - ignore: take no further action
- %% - pause_minority: pause any nodes belonging to a minority island
- %% - autoheal: start and stop nodes as required, to heal a partition
- %%
- %% See http://www.rabbitmq.com/partitions.html for further details.
- %%
- %% {cluster_partition_handling, ignore},
+ %% Override file handle limits.
+ %% {file_handles_high_watermark, 10000000},
- %% Make clustering happen *automatically* at startup. Note that
- %% changes to this element are only applied when the broker is
- %% starting, and not thereafter.
- %%
- %% {cluster_nodes, {['rabbit@my.host.com'], disc}},
+ %%
+ %% Misc/Advanced Options:
+ %%
+ %% NB: Change these only if you understand what you are doing!
+ %%
- %% Set (internal) statistics collection granularity.
- %% {collect_statistics, none},
+ %% How to respond to cluster partitions.
+ %%
+ %% - ignore: take no further action
+ %% - pause_minority: pause any nodes belonging to a minority island
+ %% - autoheal: start and stop nodes as required, to heal a partition
+ %%
+ %% See http://www.rabbitmq.com/partitions.html for further details.
+ %%
+ %% {cluster_partition_handling, ignore},
+
+ %% Make clustering happen *automatically* at startup. Note that
+ %% changes to this element are only applied when the broker is
+ %% starting, and not thereafter.
+ %%
+ %% {cluster_nodes, {['rabbit@my.host.com'], disc}},
- %% Statistics collection interval (in milliseconds).
- %% {collect_statistics_interval, 5000},
+ %% Set (internal) statistics collection granularity.
+ %% {collect_statistics, none},
- %% Explicitly enable/disable hipe compilation.
- %% {hipe_compile, true},
+ %% Statistics collection interval (in milliseconds).
+ %% {collect_statistics_interval, 5000},
- ]},
+ %% Explicitly enable/disable hipe compilation.
+ %% {hipe_compile, true},
+
+ ]},
%% ----------------------------------------------------------------------------
%% RabbiMQ Management Plugin
@@ -151,9 +152,10 @@
]},
- {rabbitmq_management_agent [%% Force fine-grained statistics.
- %% {force_fine_statistics, true}
- ]},
+ {rabbitmq_management_agent,
+ [%% Force fine-grained statistics.
+ %% {force_fine_statistics, true}
+ ]},
%% ----------------------------------------------------------------------------
%% RabbiMQ Shovel Plugin
@@ -162,51 +164,52 @@
%% ----------------------------------------------------------------------------
{rabbitmq_shovel,
- [{shovels, [%% A named shovel worker.
- %% {my_first_shovel,
- %% [{sources,
- %% [{brokers, [
- %% URI(s) of source broker(s).
- %% "amqp://user:password@host.domain/my_vhost"
- %% ]},
-
- %% Declarations we want to ensure are present on the
- %% source broker(s).
- %% {declarations, []}
- %% ]},
-
- %% {destinations,
- %% [%% A singular version of the 'brokers' element.
- %% {broker, "amqp://"},
-
- %% Declarations we want to ensure are present on
- %% the destination broker(s).
- %% {declarations, []}
- %% ]},
-
- %% Name of the queue to shovel messages from.
- %% {queue, <<>>},
-
- %% Optional prefetch count.
- %% {prefetch_count, 10},
-
- %% when to acknowledge messages:
- %% - no_ack: never (auto)
- %% - on_publish: after each message is republished
- %% - on_confirm: when the destination broker confirms receipt
- %% {ack_mode, on_confirm},
-
- %% Static list of basic.properties to set on re-publication.
- %% {publish_properties, [{delivery_mode, 2}]},
-
- %% Overwrite fields of the outbound basic.publish.
- %% {publish_fields, []},
-
- %% The number of seconds to wait before attempting to
- %% reconnect in the event of a connection failure.
- %% {reconnect_delay, 2.5}
- ]}
- ]},
+ [{shovels,
+ [%% A named shovel worker.
+ %% {my_first_shovel,
+ %% [{sources,
+ %% [{brokers, [
+ %% URI(s) of source broker(s).
+ %% "amqp://user:password@host.domain/my_vhost"
+ %% ]},
+
+ %% Declarations we want to ensure are present on the
+ %% source broker(s).
+ %% {declarations, []}
+ %% ]},
+
+ %% {destinations,
+ %% [%% A singular version of the 'brokers' element.
+ %% {broker, "amqp://"},
+
+ %% Declarations we want to ensure are present on
+ %% the destination broker(s).
+ %% {declarations, []}
+ %% ]},
+
+ %% Name of the queue to shovel messages from.
+ %% {queue, <<>>},
+
+ %% Optional prefetch count.
+ %% {prefetch_count, 10},
+
+ %% when to acknowledge messages:
+ %% - no_ack: never (auto)
+ %% - on_publish: after each message is republished
+ %% - on_confirm: when the destination broker confirms receipt
+ %% {ack_mode, on_confirm},
+
+ %% Static list of basic.properties to set on re-publication.
+ %% {publish_properties, [{delivery_mode, 2}]},
+
+ %% Overwrite fields of the outbound basic.publish.
+ %% {publish_fields, []},
+
+ %% The number of seconds to wait before attempting to
+ %% reconnect in the event of a connection failure.
+ %% {reconnect_delay, 2.5}
+ ]}
+ ]},
%% ----------------------------------------------------------------------------
%% RabbiMQ Stomp Adapter
@@ -276,12 +279,13 @@
%% for details
%% ----------------------------------------------------------------------------
- {rabbitmq_amqp1_0, [%% Set the default user.
- %% {default_user, "guest"},
+ {rabbitmq_amqp1_0,
+ [%% Set the default user.
+ %% {default_user, "guest"},
- %% Enable protocol strict mode.
- %% {protocol_strict_mode, false}
- ]},
+ %% Enable protocol strict mode.
+ %% {protocol_strict_mode, false}
+ ]},
%% ----------------------------------------------------------------------------
%% RabbitMQ LDAP Plugin