|
1 | 1 | ## This example configuration file demonstrates various settings |
2 | | -## available via rabbitmq.conf. It primarily focuses core broker settings |
| 2 | +## available via rabbitmq.conf. It primarily focuses on core broker settings |
3 | 3 | ## but some tier 1 plugin settings are also covered. |
4 | 4 | ## |
5 | 5 | ## This file is AN EXAMPLE. It is NOT MEANT TO BE USED IN PRODUCTION. Instead of |
|
99 | 99 | ## Relevant doc guide: https://www.rabbitmq.com/docs/ssl. |
100 | 100 | ## |
101 | 101 | # listeners.ssl.1 = 5671 |
102 | | -# |
| 102 | +# |
103 | 103 | # ssl_options.verify = verify_peer |
104 | 104 | # ssl_options.fail_if_no_peer_cert = false |
105 | 105 | # ssl_options.cacertfile = /path/to/cacert.pem |
|
243 | 243 |
|
244 | 244 | ## Authentication |
245 | 245 | ## The built-in mechanisms are 'PLAIN', |
246 | | -## 'AMQPLAIN', and 'EXTERNAL' Additional mechanisms can be added via |
| 246 | +## 'AMQPLAIN', and 'EXTERNAL'. Additional mechanisms can be added via |
247 | 247 | ## plugins. |
248 | 248 | ## |
249 | 249 | ## Relevant doc guide: https://www.rabbitmq.com/docs/authentication. |
|
311 | 311 | # password_hashing_module = rabbit_password_hashing_md5 |
312 | 312 |
|
313 | 313 | ## |
314 | | -## Default User / VHost |
| 314 | +## Credential validation. |
| 315 | +## |
| 316 | +## These settings can help enforce password requirements for all newly created users. |
| 317 | +## |
| 318 | +# credential_validator.validation_backend = rabbit_credential_validator_min_password_length |
| 319 | +# credential_validator.min_length = 30 |
| 320 | +# credential_validator.regexp = ^[a-zA-Z0-9!@#$%^&*()]+$ |
| 321 | + |
| 322 | +## |
| 323 | +## Default User and Their Permissions |
315 | 324 | ## |
316 | 325 |
|
317 | 326 | ## On first start RabbitMQ will create a vhost and a user. These |
|
343 | 352 | # default_user_tags.management = true |
344 | 353 | # default_user_tags.custom_tag = true |
345 | 354 |
|
| 355 | +## |
| 356 | +## Default (pre-configured) Virtual Host Limits |
| 357 | +## |
| 358 | +## Apply limits automatically to newly created virtual host whose names match a pattern. |
| 359 | +## Relevant doc guide: https://www.rabbitmq.com/docs/vhosts#limits |
| 360 | +## |
| 361 | +# default_limits.vhosts.prod.pattern = ^prod-.* |
| 362 | +# default_limits.vhosts.prod.max_connections = 5000 |
| 363 | +# default_limits.vhosts.prod.max_queues = 5000 |
| 364 | + |
| 365 | +## |
| 366 | +## Default operator Policies |
| 367 | +## |
| 368 | +## Apply operator policies automatically to queues whose names match a pattern. |
| 369 | +## Relevant doc guide: https://www.rabbitmq.com/docs/parameters#operator-policies |
| 370 | +## |
| 371 | +# default_policies.operator.limits.vhost_pattern = ^prod-.* |
| 372 | +# default_policies.operator.limits.queue_pattern = .* |
| 373 | +# default_policies.operator.limits.max_length = 10000 |
| 374 | +# default_policies.operator.limits.message_ttl = 86400000 |
| 375 | + |
| 376 | +## |
| 377 | +## Default Users |
| 378 | +## |
| 379 | +## Pre-configure user permissions for newly created virtual hosts whose names match a pattern. |
| 380 | +## In the example below, "monitoring" is the user name. |
| 381 | +## |
| 382 | +# default_users.monitoring.vhost_pattern = .* |
| 383 | +# default_users.monitoring.tags = monitoring |
| 384 | +# default_users.monitoring.configure = ^$ |
| 385 | +# default_users.monitoring.read = .* |
| 386 | +# default_users.monitoring.write = ^$ |
| 387 | + |
346 | 388 | ## |
347 | 389 | ## Additional network and protocol related configuration |
348 | 390 | ## |
|
445 | 487 | # stream.listeners.ssl.default = 5553 |
446 | 488 |
|
447 | 489 | ## Number of Erlang processes that will accept RabbitMQ Stream Protocol client connections, |
448 | | -## one setting for for the TCP and one for the TLS listeners. |
| 490 | +## one setting for the TCP and one for the TLS listeners. |
449 | 491 | # stream.num_acceptors.tcp = 10 |
450 | 492 | # stream.num_acceptors.ssl = 1 |
451 | 493 |
|
|
468 | 510 | ## depend on the number of streams and their replicas (members). |
469 | 511 | ## |
470 | 512 | # stream.replication.port_range.min = 5000 |
471 | | -# stream.replication.port_range.max 10000 |
| 513 | +# stream.replication.port_range.max = 10000 |
472 | 514 |
|
473 | 515 | ## Advertised hostname and port for stream clients. Use when RabbitMQ |
474 | 516 | ## is behind a load balancer or in a container environment. |
|
607 | 649 | ## Make clustering happen *automatically* at startup. Only applied |
608 | 650 | ## to nodes that have just been reset or started for the first time. |
609 | 651 | ## |
610 | | -## Relevant doc guide: https://www.rabbitmq.com/docs//cluster-formation |
| 652 | +## Relevant doc guide: https://www.rabbitmq.com/docs/cluster-formation |
611 | 653 | ## |
612 | 654 |
|
613 | 655 | # cluster_formation.peer_discovery_backend = rabbit_peer_discovery_classic_config |
|
661 | 703 | # raft.wal_max_batch_size = 4096 |
662 | 704 | # raft.snapshot_chunk_size = 1000000 |
663 | 705 |
|
| 706 | +## Metadata store (Khepri) operation timeout in milliseconds. |
| 707 | +## |
| 708 | +# metadata_store.khepri.default_timeout = 30000 |
| 709 | + |
664 | 710 | ## |
665 | 711 | ## Misc and Advanced Options |
666 | 712 | ## |
|
669 | 715 |
|
670 | 716 | ## To permit or deny a deprecated feature when it is in its |
671 | 717 | ## `permitted_by_default` or `denied_by_default` deprecation phase, the |
672 | | -## default state can be overriden from the configuration. |
| 718 | +## default state can be overridden from the configuration. |
673 | 719 | ## |
674 | 720 | ## When a deprecated feature is permitted by default (first phase of the |
675 | 721 | ## deprecation period), it means the feature is available by default and can |
|
737 | 783 | ## |
738 | 784 | # proxy_protocol = false |
739 | 785 |
|
740 | | -## Overriden product name and version. |
| 786 | +## Overridden product name and version. |
741 | 787 | ## They are set to "RabbitMQ" and the release version by default. |
742 | 788 | # product.name = RabbitMQ |
743 | 789 | # product.version = 1.2.3 |
744 | 790 |
|
745 | 791 | ## "Message of the day" file. |
746 | 792 | ## Its content is used to expand the logged and printed banners. |
747 | | -## Default to /etc/rabbitmq/motd on Unix, %APPDATA%\RabbitMQ\motd.txt |
| 793 | +## Defaults to /etc/rabbitmq/motd on Unix, %APPDATA%\RabbitMQ\motd.txt |
748 | 794 | ## on Windows. |
749 | 795 | # motd_file = /etc/rabbitmq/motd |
750 | 796 |
|
751 | 797 | ## Consumer timeout |
752 | | -## If a message delivered to a consumer has not been acknowledge before this timer |
753 | | -## triggers the channel will be force closed by the broker. This ensure that |
754 | | -## faultly consumers that never ack will not hold on to messages indefinitely. |
| 798 | +## If a message delivered to a consumer has not been acknowledged before this timer |
| 799 | +## triggers the channel will be force closed by the broker. This ensures that |
| 800 | +## faulty consumers that never ack will not hold on to messages indefinitely. |
755 | 801 | ## |
756 | 802 | # consumer_timeout = 900000 |
757 | 803 |
|
|
847 | 893 | ## lengths) is retained. |
848 | 894 | ## |
849 | 895 | ## Relevant doc guide: https://www.rabbitmq.com/docs/management#configuration |
850 | | -## Your can use 'minute', 'hour' and 'day' keys or integer key (in seconds) |
| 896 | +## You can use 'minute', 'hour' and 'day' keys or integer key (in seconds) |
851 | 897 | # management.sample_retention_policies.global.minute = 5 |
852 | 898 | # management.sample_retention_policies.global.hour = 60 |
853 | 899 | # management.sample_retention_policies.global.day = 1200 |
|
913 | 959 |
|
914 | 960 |
|
915 | 961 | ## Number of Erlang processes that will accept AMQP 0-9-1 and AMQP 1.0 client connections, |
916 | | -## one setting for for the TCP and one for the TLS listeners. |
| 962 | +## one setting for the TCP and one for the TLS listeners. |
917 | 963 | ## |
918 | 964 | # stomp.num_acceptors.tcp = 10 |
919 | 965 | # stomp.num_acceptors.ssl = 1 |
|
933 | 979 | # stomp.default_user = guest |
934 | 980 | # stomp.default_pass = guest |
935 | 981 |
|
936 | | -## If a default user is configured, or you have configured use TLS client |
| 982 | +## If a default user is configured, or you have configured to use TLS client |
937 | 983 | ## certificate based authentication, you can choose to allow clients to |
938 | 984 | ## omit the CONNECT frame entirely. If set to true, the client is |
939 | 985 | ## automatically connected as the default user or user supplied in the |
|
1038 | 1084 | ## Sets the durable queue type to be used for QoS 1 subscriptions. |
1039 | 1085 | ## |
1040 | 1086 | ## Supported types are: |
1041 | | -## |
| 1087 | +## |
1042 | 1088 | ## * classic |
1043 | 1089 | ## * quorum |
1044 | 1090 | ## |
|
1178 | 1224 | ## |
1179 | 1225 | # management.oauth_client_id = rabbitmq-management |
1180 | 1226 |
|
1181 | | -## Allows disable Basic HTTP Authentication. Opt-in to use JWT tokens exclusively. |
| 1227 | +## Allows disabling Basic HTTP Authentication. Opt-in to use JWT tokens exclusively. |
1182 | 1228 | ## |
1183 | 1229 | # management.oauth_disable_basic_auth = true |
1184 | 1230 |
|
1185 | | -## The scopes RabbitMq should claim during the management UI authorization flow. |
| 1231 | +## The scopes RabbitMQ should claim during the management UI authorization flow. |
1186 | 1232 | ## Defaults to "openid profile" |
1187 | 1233 | ## |
1188 | 1234 | # management.oauth_scopes = openid profile rabbitmq.tag:management |
|
1266 | 1312 |
|
1267 | 1313 | ## Sets Server Name Indication for LDAP connections. |
1268 | 1314 | ## If an LDAP server host is available via multiple domain names, set this value |
1269 | | -## to the preferred domain name target LDAP server |
| 1315 | +## to the preferred domain name of the target LDAP server |
1270 | 1316 | # auth_ldap.ssl_options.sni = ldap.identity.eng.megacorp.local |
1271 | 1317 |
|
1272 | 1318 | ## take wildcards into account when performing hostname verification |
|
1318 | 1364 | # auth_ldap.other_bind.user_dn = User |
1319 | 1365 | # auth_ldap.other_bind.password = Password |
1320 | 1366 |
|
1321 | | -## If user_dn and password defined - other options is ignored. |
| 1367 | +## If user_dn and password are defined - other options are ignored. |
1322 | 1368 |
|
1323 | 1369 | ## |
1324 | 1370 | ## LDAP: Limitations |
|
0 commit comments