Advertisement
Guest User

Untitled

a guest
Feb 15th, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.20 KB | None | 0 0
  1. # ======================================
  2. # RabbitMQ broker section
  3. # ======================================
  4.  
  5. ## Related doc guide: http://rabbitmq.com/configure.html. See
  6. ## http://rabbitmq.com/documentation.html for documentation ToC.
  7.  
  8. ## Networking
  9. ## ====================
  10. ##
  11. ## Related doc guide: http://rabbitmq.com/networking.html.
  12. ##
  13. ## By default, RabbitMQ will listen on all interfaces, using
  14. ## the standard (reserved) AMQP 0-9-1 and 1.0 port.
  15. ##
  16. # listeners.tcp.default = 5672
  17.  
  18.  
  19. ## To listen on a specific interface, provide an IP address with port.
  20. ## For example, to listen only on localhost for both IPv4 and IPv6:
  21. ##
  22. # IPv4
  23. # listeners.tcp.local = 127.0.0.1:5672
  24. # IPv6
  25. # listeners.tcp.local_v6 = ::1:5672
  26.  
  27. ## You can define multiple listeners using listener names
  28. # listeners.tcp.other_port = 5673
  29. # listeners.tcp.other_ip = 10.10.10.10:5672
  30.  
  31.  
  32. ## TLS listeners are configured in the same fashion as TCP listeners,
  33. ## including the option to control the choice of interface.
  34. ##
  35. # listeners.ssl.default = 5671
  36.  
  37. ## Number of Erlang processes that will accept connections for the TCP
  38. ## and TLS listeners.
  39. ##
  40. # num_acceptors.tcp = 10
  41. # num_acceptors.ssl = 1
  42.  
  43.  
  44. ## Maximum time for AMQP 0-8/0-9/0-9-1 handshake (after socket connection
  45. ## and TLS handshake), in milliseconds.
  46. ##
  47. # handshake_timeout = 10000
  48.  
  49. ## Set to 'true' to perform reverse DNS lookups when accepting a
  50. ## connection. Hostnames will then be shown instead of IP addresses
  51. ## in rabbitmqctl and the management plugin.
  52. ##
  53. # reverse_dns_lookups = true
  54.  
  55. ##
  56. ## Security, Access Control
  57. ## ==============
  58. ##
  59.  
  60. ## Related doc guide: http://rabbitmq.com/access-control.html.
  61.  
  62. ## The default "guest" user is only permitted to access the server
  63. ## via a loopback interface (e.g. localhost).
  64. ## {loopback_users, [<<"guest">>]},
  65. ##
  66. # loopback_users.guest = true
  67.  
  68. ## Uncomment the following line if you want to allow access to the
  69. ## guest user from anywhere on the network.
  70. # loopback_users.guest = false
  71.  
  72. ## TLS configuration.
  73. ##
  74. ## Related doc guide: http://rabbitmq.com/ssl.html.
  75. ##
  76. # ssl_options.verify = verify_peer
  77. # ssl_options.fail_if_no_peer_cert = false
  78. # ssl_options.cacertfile = /path/to/cacert.pem
  79. # ssl_options.certfile = /path/to/cert.pem
  80. # ssl_options.keyfile = /path/to/key.pem
  81.  
  82. ## Select an authentication/authorisation backend to use.
  83. ##
  84. ## Alternative backends are provided by plugins, such as rabbitmq-auth-backend-ldap.
  85. ##
  86. ## NB: These settings require certain plugins to be enabled.
  87. ##
  88. ## Related doc guides:
  89. ##
  90. ## * http://rabbitmq.com/plugins.html
  91. ## * http://rabbitmq.com/access-control.html
  92. ##
  93.  
  94. # auth_backends.1 = rabbit_auth_backend_internal
  95.  
  96. ## uses separate backends for authentication and authorisation,
  97. ## see below.
  98. # auth_backends.1.authn = rabbit_auth_backend_ldap
  99. # auth_backends.1.authz = rabbit_auth_backend_internal
  100.  
  101. ## The rabbitmq_auth_backend_ldap plugin allows the broker to
  102. ## perform authentication and authorisation by deferring to an
  103. ## external LDAP server.
  104. ##
  105. ## Relevant doc guides:
  106. ##
  107. ## * http://rabbitmq.com/ldap.html
  108. ## * http://rabbitmq.com/access-control.html
  109. ##
  110. ## uses LDAP for both authentication and authorisation
  111. # auth_backends.1 = rabbit_auth_backend_ldap
  112.  
  113. ## uses HTTP service for both authentication and
  114. ## authorisation
  115. # auth_backends.1 = rabbit_auth_backend_http
  116.  
  117. ## uses two backends in a chain: HTTP first, then internal
  118. # auth_backends.1 = rabbit_auth_backend_http
  119. # auth_backends.2 = rabbit_auth_backend_internal
  120.  
  121. ## Authentication
  122. ## The built-in mechanisms are 'PLAIN',
  123. ## 'AMQPLAIN', and 'EXTERNAL' Additional mechanisms can be added via
  124. ## plugins.
  125. ##
  126. ## Related doc guide: http://rabbitmq.com/authentication.html.
  127. ##
  128. # auth_mechanisms.1 = PLAIN
  129. # auth_mechanisms.2 = AMQPLAIN
  130.  
  131. ## The rabbitmq-auth-mechanism-ssl plugin makes it possible to
  132. ## authenticate a user based on the client's x509 (TLS) certificate.
  133. ## Related doc guide: http://rabbitmq.com/authentication.html.
  134. ##
  135. ## To use auth-mechanism-ssl, the EXTERNAL mechanism should
  136. ## be enabled:
  137. ##
  138. # auth_mechanisms.1 = PLAIN
  139. # auth_mechanisms.2 = AMQPLAIN
  140. # auth_mechanisms.3 = EXTERNAL
  141.  
  142. ## To force x509 certificate-based authentication on all clients,
  143. ## exclude all other mechanisms (note: this will disable password-based
  144. ## authentication even for the management UI!):
  145. ##
  146. # auth_mechanisms.1 = EXTERNAL
  147.  
  148. ## This pertains to both the rabbitmq-auth-mechanism-ssl plugin and
  149. ## STOMP ssl_cert_login configurations. See the RabbitMQ STOMP plugin
  150. ## configuration section later in this file and the README in
  151. ## https://github.com/rabbitmq/rabbitmq-auth-mechanism-ssl for further
  152. ## details.
  153. ##
  154. ## To use the TLS cert's CN instead of its DN as the username
  155. ##
  156. # ssl_cert_login_from = common_name
  157.  
  158. ## TLS handshake timeout, in milliseconds.
  159. ##
  160. # ssl_handshake_timeout = 5000
  161.  
  162.  
  163. ## Password hashing implementation. Will only affect newly
  164. ## created users. To recalculate hash for an existing user
  165. ## it's necessary to update her password.
  166. ##
  167. ## To use SHA-512, set to rabbit_password_hashing_sha512.
  168. ##
  169. # password_hashing_module = rabbit_password_hashing_sha256
  170.  
  171. ## When importing definitions exported from versions earlier
  172. ## than 3.6.0, it is possible to go back to MD5 (only do this
  173. ## as a temporary measure!) by setting this to rabbit_password_hashing_md5.
  174. ##
  175. # password_hashing_module = rabbit_password_hashing_md5
  176.  
  177. ##
  178. ## Default User / VHost
  179. ## ====================
  180. ##
  181.  
  182. ## On first start RabbitMQ will create a vhost and a user. These
  183. ## config items control what gets created.
  184. ## Relevant doc guide: http://rabbitmq.com/access-control.html
  185. ##
  186. # default_vhost = /
  187. # default_user = guest
  188. # default_pass = guest
  189.  
  190. # default_permissions.configure = .*
  191. # default_permissions.read = .*
  192. # default_permissions.write = .*
  193.  
  194. ## Tags for default user
  195. ##
  196. ## For more details about tags, see the documentation for the
  197. ## Management Plugin at http://rabbitmq.com/management.html.
  198. ##
  199. # default_user_tags.administrator = true
  200.  
  201. ## Define other tags like this:
  202. # default_user_tags.management = true
  203. # default_user_tags.custom_tag = true
  204.  
  205. ##
  206. ## Additional network and protocol related configuration
  207. ## =====================================================
  208. ##
  209.  
  210. ## Set the default AMQP 0-9-1 heartbeat interval (in seconds).
  211. ## Related doc guides:
  212. ##
  213. ## * http://rabbitmq.com/heartbeats.html
  214. ## * http://rabbitmq.com/networking.html
  215. ##
  216. # heartbeat = 600
  217.  
  218. ## Set the max permissible size of an AMQP frame (in bytes).
  219. ##
  220. # frame_max = 131072
  221.  
  222. ## Set the max frame size the server will accept before connection
  223. ## tuning occurs
  224. ##
  225. # initial_frame_max = 4096
  226.  
  227. ## Set the max permissible number of channels per connection.
  228. ## 0 means "no limit".
  229. ##
  230. # channel_max = 128
  231.  
  232. ## Customising TCP Listener (Socket) Configuration.
  233. ##
  234. ## Related doc guides:
  235. ##
  236. ## * http://rabbitmq.com/networking.html
  237. ## * http://www.erlang.org/doc/man/inet.html#setopts-2
  238. ##
  239.  
  240. # tcp_listen_options.backlog = 128
  241. # tcp_listen_options.nodelay = true
  242. # tcp_listen_options.exit_on_close = false
  243. #
  244. # tcp_listen_options.keepalive = true
  245. # tcp_listen_options.send_timeout = 15000
  246. #
  247. # tcp_listen_options.buffer = 196608
  248. # tcp_listen_options.sndbuf = 196608
  249. # tcp_listen_options.recbuf = 196608
  250.  
  251. ##
  252. ## Resource Limits & Flow Control
  253. ## ==============================
  254. ##
  255. ## Related doc guide: http://rabbitmq.com/memory.html.
  256.  
  257. ## Memory-based Flow Control threshold.
  258. ##
  259. # vm_memory_high_watermark.relative = 0.4
  260.  
  261. ## Alternatively, we can set a limit (in bytes) of RAM used by the node.
  262. ##
  263. # vm_memory_high_watermark.absolute = 1073741824
  264.  
  265. ## Or you can set absolute value using memory units (with RabbitMQ 3.6.0+).
  266. ## Absolute watermark will be ignored if relative is defined!
  267. ##
  268. # vm_memory_high_watermark.absolute = 2GB
  269. ##
  270. ## Supported units suffixes:
  271. ##
  272. ## kb, KB: kibibytes (2^10 bytes)
  273. ## mb, MB: mebibytes (2^20)
  274. ## gb, GB: gibibytes (2^30)
  275.  
  276.  
  277.  
  278. ## Fraction of the high watermark limit at which queues start to
  279. ## page message out to disc in order to free up memory.
  280. ## For example, when vm_memory_high_watermark is set to 0.4 and this value is set to 0.5,
  281. ## paging can begin as early as when 20% of total available RAM is used by the node.
  282. ##
  283. ## Values greater than 1.0 can be dangerous and should be used carefully.
  284. ##
  285. ## One alternative to this is to use durable queues and publish messages
  286. ## as persistent (delivery mode = 2). With this combination queues will
  287. ## move messages to disk much more rapidly.
  288. ##
  289. ## Another alternative is to configure queues to page all messages (both
  290. ## persistent and transient) to disk as quickly
  291. ## as possible, see http://rabbitmq.com/lazy-queues.html.
  292. ##
  293. # vm_memory_high_watermark_paging_ratio = 0.5
  294.  
  295. ## Selects Erlang VM memory consumption calculation strategy. Can be `allocated`, `rss` or `legacy` (aliased as `erlang`),
  296. ## Introduced in 3.6.11. `rss` is the default as of 3.6.12.
  297. ## See https://github.com/rabbitmq/rabbitmq-server/issues/1223 and rabbitmq/rabbitmq-common#224 for background.
  298. # vm_memory_calculation_strategy = rss
  299.  
  300. ## Interval (in milliseconds) at which we perform the check of the memory
  301. ## levels against the watermarks.
  302. ##
  303. # memory_monitor_interval = 2500
  304.  
  305. ## The total memory available can be calculated from the OS resources
  306. ## - default option - or provided as a configuration parameter.
  307. # total_memory_available_override_value = 2GB
  308.  
  309. ## Set disk free limit (in bytes). Once free disk space reaches this
  310. ## lower bound, a disk alarm will be set - see the documentation
  311. ## listed above for more details.
  312. ##
  313. ## Absolute watermark will be ignored if relative is defined!
  314. # disk_free_limit.absolute = 50000
  315.  
  316. ## Or you can set it using memory units (same as in vm_memory_high_watermark)
  317. ## with RabbitMQ 3.6.0+.
  318. # disk_free_limit.absolute = 500KB
  319. # disk_free_limit.absolute = 50mb
  320. # disk_free_limit.absolute = 5GB
  321.  
  322. ## Alternatively, we can set a limit relative to total available RAM.
  323. ##
  324. ## Values lower than 1.0 can be dangerous and should be used carefully.
  325. # disk_free_limit.relative = 2.0
  326.  
  327. ##
  328. ## Clustering
  329. ## =====================
  330. ##
  331. # cluster_partition_handling = ignore
  332.  
  333. ## pause_if_all_down strategy require additional configuration
  334. # cluster_partition_handling = pause_if_all_down
  335.  
  336. ## Recover strategy. Can be either 'autoheal' or 'ignore'
  337. # cluster_partition_handling.pause_if_all_down.recover = ignore
  338.  
  339. ## Node names to check
  340. # cluster_partition_handling.pause_if_all_down.nodes.1 = rabbit@localhost
  341. # cluster_partition_handling.pause_if_all_down.nodes.2 = hare@localhost
  342.  
  343. ## Mirror sync batch size, in messages. Increasing this will speed
  344. ## up syncing but total batch size in bytes must not exceed 2 GiB.
  345. ## Available in RabbitMQ 3.6.0 or later.
  346. ##
  347. # mirroring_sync_batch_size = 4096
  348.  
  349. ## Make clustering happen *automatically* at startup. Only applied
  350. ## to nodes that have just been reset or started for the first time.
  351. ##
  352. ## Relevant doc guide: http://rabbitmq.com//cluster-formation.html
  353. ##
  354.  
  355. # cluster_formation.peer_discovery_backend = rabbit_peer_discovery_classic_config
  356. #
  357. # cluster_formation.classic_config.nodes.1 = rabbit1@hostname
  358. # cluster_formation.classic_config.nodes.2 = rabbit2@hostname
  359. # cluster_formation.classic_config.nodes.3 = rabbit3@hostname
  360. # cluster_formation.classic_config.nodes.4 = rabbit4@hostname
  361.  
  362. ## DNS-based peer discovery. This backend will list A records
  363. ## of the configured hostname and perform reverse lookups for
  364. ## the addresses returned.
  365.  
  366. # cluster_formation.peer_discovery_backend = rabbit_peer_discovery_dns
  367. # cluster_formation.dns.hostname = discovery.eng.example.local
  368.  
  369. ## This node's type can be configured. If you are not sure
  370. ## what node type to use, always use 'disc'.
  371. # cluster_formation.node_type = disc
  372.  
  373. ## Interval (in milliseconds) at which we send keepalive messages
  374. ## to other cluster members. Note that this is not the same thing
  375. ## as net_ticktime; missed keepalive messages will not cause nodes
  376. ## to be considered down.
  377. ##
  378. # cluster_keepalive_interval = 10000
  379.  
  380. ##
  381. ## Statistics Collection
  382. ## =====================
  383. ##
  384.  
  385. ## Set (internal) statistics collection granularity.
  386. ##
  387. ## Can be none, coarse or fine
  388. # collect_statistics = none
  389.  
  390. # collect_statistics = coarse
  391.  
  392. ## Statistics collection interval (in milliseconds). Increasing
  393. ## this will reduce the load on management database.
  394. ##
  395. # collect_statistics_interval = 5000
  396.  
  397. ##
  398. ## Misc/Advanced Options
  399. ## =====================
  400. ##
  401. ## NB: Change these only if you understand what you are doing!
  402. ##
  403.  
  404. ## Explicitly enable/disable hipe compilation.
  405. ##
  406. # hipe_compile = false
  407.  
  408. ## Timeout used when waiting for Mnesia tables in a cluster to
  409. ## become available.
  410. ##
  411. # mnesia_table_loading_retry_timeout = 30000
  412.  
  413. ## Retries when waiting for Mnesia tables in the cluster startup. Note that
  414. ## this setting is not applied to Mnesia upgrades or node deletions.
  415. ##
  416. # mnesia_table_loading_retry_limit = 10
  417.  
  418. ## Size in bytes below which to embed messages in the queue index.
  419. ## Related doc guide: http://rabbitmq.com/persistence-conf.html
  420. ##
  421. # queue_index_embed_msgs_below = 4096
  422.  
  423. ## You can also set this size in memory units
  424. ##
  425. # queue_index_embed_msgs_below = 4kb
  426.  
  427. ## Whether or not to enable background periodic GC of all
  428. ## Erlang processes in "waiting" state.
  429. ##
  430. ## Disabling background GC may reduce latency for client operations,
  431. ## keeping it enabled may reduce median RAM usage.
  432. ##
  433. # background_gc_enabled = false
  434.  
  435. ## Target (desired) interval (in milliseconds) at which we run background GC.
  436. ## The actual interval will vary depending on how long it takes to execute
  437. ## the operation (can be higher than this interval). Values less than
  438. ## 30000 milliseconds are not recommended.
  439. ##
  440. # background_gc_target_interval = 60000
  441.  
  442. ## Whether or not to enable proxy protocol support.
  443. ## Once enabled, clients cannot directly connect to the broker
  444. ## anymore. They must connect through a load balancer that sends the
  445. ## proxy protocol header to the broker at connection time.
  446. ## This setting applies only to AMQP clients, other protocols
  447. ## like MQTT or STOMP have their own setting to enable proxy protocol.
  448. ## See the plugins documentation for more information.
  449. ##
  450. # proxy_protocol = false
  451.  
  452. ## ----------------------------------------------------------------------------
  453. ## Advanced Erlang Networking/Clustering Options.
  454. ##
  455. ## Related doc guide: http://rabbitmq.com/clustering.html
  456. ## ----------------------------------------------------------------------------
  457.  
  458. # ======================================
  459. # Kernel section
  460. # ======================================
  461.  
  462. # kernel.net_ticktime = 60
  463.  
  464. ## ----------------------------------------------------------------------------
  465. ## RabbitMQ Management Plugin
  466. ##
  467. ## Related doc guide: http://rabbitmq.com/management.html.
  468. ## ----------------------------------------------------------------------------
  469.  
  470. # =======================================
  471. # Management section
  472. # =======================================
  473.  
  474. ## Preload schema definitions from the following JSON file.
  475. ## Related doc guide: http://rabbitmq.com/management.html#load-definitions.
  476. ##
  477. # management.load_definitions = /path/to/exported/definitions.json
  478.  
  479. ## Log all requests to the management HTTP API to a file.
  480. ##
  481. # management.http_log_dir = /path/to/access.log
  482.  
  483. ## Change the port on which the HTTP listener listens,
  484. ## specifying an interface for the web server to bind to.
  485. ## Also set the listener to use TLS and provide TLS options.
  486. ##
  487.  
  488. # management.listener.port = 15672
  489. # management.listener.ip = 127.0.0.1
  490. # management.listener.ssl = true
  491.  
  492. # management.listener.ssl_opts.cacertfile = /path/to/cacert.pem
  493. # management.listener.ssl_opts.certfile = /path/to/cert.pem
  494. # management.listener.ssl_opts.keyfile = /path/to/key.pem
  495.  
  496. ## One of 'basic', 'detailed' or 'none'. See
  497. ## http://rabbitmq.com/management.html#fine-stats for more details.
  498. # management.rates_mode = basic
  499.  
  500. ## Configure how long aggregated data (such as message rates and queue
  501. ## lengths) is retained. Please read the plugin's documentation in
  502. ## http://rabbitmq.com/management.html#configuration for more
  503. ## details.
  504. ## Your can use 'minute', 'hour' and 'day' keys or integer key (in seconds)
  505. # management.sample_retention_policies.global.minute = 5
  506. # management.sample_retention_policies.global.hour = 60
  507. # management.sample_retention_policies.global.day = 1200
  508.  
  509. # management.sample_retention_policies.basic.minute = 5
  510. # management.sample_retention_policies.basic.hour = 60
  511.  
  512. # management.sample_retention_policies.detailed.10 = 5
  513.  
  514. ## ----------------------------------------------------------------------------
  515. ## RabbitMQ Shovel Plugin
  516. ##
  517. ## Related doc guide: http://rabbitmq.com/shovel.html
  518. ## ----------------------------------------------------------------------------
  519.  
  520. ## Shovel plugin config example is defined in additional.config file
  521.  
  522.  
  523. ## ----------------------------------------------------------------------------
  524. ## RabbitMQ STOMP Plugin
  525. ##
  526. ## Related doc guide: http://rabbitmq.com/stomp.html
  527. ## ----------------------------------------------------------------------------
  528.  
  529. # =======================================
  530. # STOMP section
  531. # =======================================
  532.  
  533. ## Network Configuration. The format is generally the same as for the core broker.
  534. ##
  535. # stomp.listeners.tcp.default = 61613
  536.  
  537. ## Same for ssl listeners
  538. ##
  539. # stomp.listeners.ssl.default = 61614
  540.  
  541. ## Number of Erlang processes that will accept connections for the TCP
  542. ## and TLS listeners.
  543. ##
  544. # stomp.num_acceptors.tcp = 10
  545. # stomp.num_acceptors.ssl = 1
  546.  
  547. ## Additional TLS options
  548.  
  549. ## Extract a name from the client's certificate when using TLS.
  550. ##
  551. # stomp.ssl_cert_login = true
  552.  
  553. ## Set a default user name and password. This is used as the default login
  554. ## whenever a CONNECT frame omits the login and passcode headers.
  555. ##
  556. ## Please note that setting this will allow clients to connect without
  557. ## authenticating!
  558. ##
  559. # stomp.default_user = guest
  560. # stomp.default_pass = guest
  561.  
  562. ## If a default user is configured, or you have configured use TLS client
  563. ## certificate based authentication, you can choose to allow clients to
  564. ## omit the CONNECT frame entirely. If set to true, the client is
  565. ## automatically connected as the default user or user supplied in the
  566. ## TLS certificate whenever the first frame sent on a session is not a
  567. ## CONNECT frame.
  568. ##
  569. # stomp.implicit_connect = true
  570.  
  571. ## Whether or not to enable proxy protocol support.
  572. ## Once enabled, clients cannot directly connect to the broker
  573. ## anymore. They must connect through a load balancer that sends the
  574. ## proxy protocol header to the broker at connection time.
  575. ## This setting applies only to STOMP clients, other protocols
  576. ## like MQTT or AMQP have their own setting to enable proxy protocol.
  577. ## See the plugins or broker documentation for more information.
  578. ##
  579. # stomp.proxy_protocol = false
  580.  
  581. ## ----------------------------------------------------------------------------
  582. ## RabbitMQ MQTT Adapter
  583. ##
  584. ## See https://github.com/rabbitmq/rabbitmq-mqtt/blob/stable/README.md
  585. ## for details
  586. ## ----------------------------------------------------------------------------
  587.  
  588. # =======================================
  589. # MQTT section
  590. # =======================================
  591.  
  592. ## Set the default user name and password used for anonymous connections (when client
  593. ## provides no credentials). Anonymous connections are highly discouraged!
  594. ##
  595. # mqtt.default_user = guest
  596. # mqtt.default_pass = guest
  597.  
  598. ## Enable anonymous connections. If this is set to false, clients MUST provide
  599. ## credentials in order to connect. See also the mqtt.default_user/mqtt.default_pass
  600. ## keys. Anonymous connections are highly discouraged!
  601. ##
  602. # mqtt.allow_anonymous = true
  603.  
  604. ## If you have multiple chosts, specify the one to which the
  605. ## adapter connects.
  606. ##
  607. # mqtt.vhost = /
  608.  
  609. ## Specify the exchange to which messages from MQTT clients are published.
  610. ##
  611. # mqtt.exchange = amq.topic
  612.  
  613. ## Specify TTL (time to live) to control the lifetime of non-clean sessions.
  614. ##
  615. # mqtt.subscription_ttl = 1800000
  616.  
  617. ## Set the prefetch count (governing the maximum number of unacknowledged
  618. ## messages that will be delivered).
  619. ##
  620. # mqtt.prefetch = 10
  621.  
  622. ## TCP/SSL Configuration (as per the broker configuration).
  623. ##
  624. # mqtt.listeners.tcp.default = 1883
  625.  
  626. ## Same for ssl listener
  627. ##
  628. # mqtt.listeners.ssl.default = 1884
  629.  
  630. ## Number of Erlang processes that will accept connections for the TCP
  631. ## and TLS listeners.
  632. ##
  633. # mqtt.num_acceptors.tcp = 10
  634. # mqtt.num_acceptors.ssl = 10
  635.  
  636. ## TCP listener options (as per the broker configuration).
  637. ##
  638. # mqtt.tcp_listen_options.backlog = 128
  639. # mqtt.tcp_listen_options.nodelay = true
  640.  
  641. ## Whether or not to enable proxy protocol support.
  642. ## Once enabled, clients cannot directly connect to the broker
  643. ## anymore. They must connect through a load balancer that sends the
  644. ## proxy protocol header to the broker at connection time.
  645. ## This setting applies only to STOMP clients, other protocols
  646. ## like STOMP or AMQP have their own setting to enable proxy protocol.
  647. ## See the plugins or broker documentation for more information.
  648. ##
  649. # mqtt.proxy_protocol = false
  650.  
  651. ## ----------------------------------------------------------------------------
  652. ## RabbitMQ AMQP 1.0 Support
  653. ##
  654. ## See https://github.com/rabbitmq/rabbitmq-amqp1.0/blob/stable/README.md.
  655. ## ----------------------------------------------------------------------------
  656.  
  657. # =======================================
  658. # AMQP 1.0 section
  659. # =======================================
  660.  
  661.  
  662. ## Connections that are not authenticated with SASL will connect as this
  663. ## account. See the README for more information.
  664. ##
  665. ## Please note that setting this will allow clients to connect without
  666. ## authenticating!
  667. ##
  668. # amqp1_0.default_user = guest
  669.  
  670. ## Enable protocol strict mode. See the README for more information.
  671. ##
  672. # amqp1_0.protocol_strict_mode = false
  673.  
  674. ## Logging settings.
  675. ##
  676. ## See http://rabbitmq.com/logging.html and https://github.com/erlang-lager/lager for details.
  677. ##
  678.  
  679. ## Log direcrory, taken from the RABBITMQ_LOG_BASE env variable by default.
  680. ##
  681. # log.dir = /var/log/rabbitmq
  682.  
  683. ## Logging to file. Can be false or a filename.
  684. ## Default:
  685. # log.file = rabbit.log
  686.  
  687. ## To disable logging to a file
  688. # log.file = false
  689.  
  690. ## Log level for file logging
  691. ##
  692. # log.file.level = info
  693.  
  694. ## File rotation config. No rotation by default.
  695. ## DO NOT SET rotation date to ''. Leave the value unset if "" is the desired value
  696. # log.file.rotation.date = $D0
  697. # log.file.rotation.size = 0
  698.  
  699. ## Logging to console (can be true or false)
  700. ##
  701. # log.console = false
  702.  
  703. ## Log level for console logging
  704. ##
  705. # log.console.level = info
  706.  
  707. ## Logging to the amq.rabbitmq.log exchange (can be true or false)
  708. ##
  709. # log.exchange = false
  710.  
  711. ## Log level to use when logging to the amq.rabbitmq.log exchange
  712. ##
  713. # log.exchange.level = info
  714.  
  715.  
  716.  
  717. ## ----------------------------------------------------------------------------
  718. ## RabbitMQ LDAP Plugin
  719. ##
  720. ## Related doc guide: http://rabbitmq.com/ldap.html.
  721. ##
  722. ## ----------------------------------------------------------------------------
  723.  
  724. # =======================================
  725. # LDAP section
  726. # =======================================
  727.  
  728. ##
  729. ## Connecting to the LDAP server(s)
  730. ## ================================
  731. ##
  732.  
  733. ## Specify servers to bind to. You *must* set this in order for the plugin
  734. ## to work properly.
  735. ##
  736. # auth_ldap.servers.1 = your-server-name-goes-here
  737.  
  738. ## You can define multiple servers
  739. # auth_ldap.servers.2 = your-other-server
  740.  
  741. ## Connect to the LDAP server using TLS
  742. ##
  743. # auth_ldap.use_ssl = false
  744.  
  745. ## Specify the LDAP port to connect to
  746. ##
  747. # auth_ldap.port = 389
  748.  
  749. ## LDAP connection timeout, in milliseconds or 'infinity'
  750. ##
  751. # auth_ldap.timeout = infinity
  752.  
  753. ## Or number
  754. # auth_ldap.timeout = 500
  755.  
  756. ## Enable logging of LDAP queries.
  757. ## One of
  758. ## - false (no logging is performed)
  759. ## - true (verbose logging of the logic used by the plugin)
  760. ## - network (as true, but additionally logs LDAP network traffic)
  761. ##
  762. ## Defaults to false.
  763. ##
  764. # auth_ldap.log = false
  765.  
  766. ## Also can be true or network
  767. # auth_ldap.log = true
  768. # auth_ldap.log = network
  769.  
  770. ##
  771. ## Authentication
  772. ## ==============
  773. ##
  774.  
  775. ## Pattern to convert the username given through AMQP to a DN before
  776. ## binding
  777. ##
  778. # auth_ldap.user_dn_pattern = cn=${username},ou=People,dc=example,dc=com
  779.  
  780. ## Alternatively, you can convert a username to a Distinguished
  781. ## Name via an LDAP lookup after binding. See the documentation for
  782. ## full details.
  783.  
  784. ## When converting a username to a dn via a lookup, set these to
  785. ## the name of the attribute that represents the user name, and the
  786. ## base DN for the lookup query.
  787. ##
  788. # auth_ldap.dn_lookup_attribute = userPrincipalName
  789. # auth_ldap.dn_lookup_base = DC=gopivotal,DC=com
  790.  
  791. ## Controls how to bind for authorisation queries and also to
  792. ## retrieve the details of users logging in without presenting a
  793. ## password (e.g., SASL EXTERNAL).
  794. ## One of
  795. ## - as_user (to bind as the authenticated user - requires a password)
  796. ## - anon (to bind anonymously)
  797. ## - {UserDN, Password} (to bind with a specified user name and password)
  798. ##
  799. ## Defaults to 'as_user'.
  800. ##
  801. # auth_ldap.other_bind = as_user
  802.  
  803. ## Or can be more complex:
  804. # auth_ldap.other_bind.user_dn = User
  805. # auth_ldap.other_bind.password = Password
  806.  
  807. ## If user_dn and password defined - other options is ignored.
  808.  
  809. # -----------------------------
  810. # Too complex section of LDAP
  811. # -----------------------------
  812.  
  813. ##
  814. ## Authorisation
  815. ## =============
  816. ##
  817.  
  818. ## The LDAP plugin can perform a variety of queries against your
  819. ## LDAP server to determine questions of authorisation.
  820. ##
  821. ## Related doc guide: http://rabbitmq.com/ldap.html#authorisation.
  822.  
  823. ## Following configuration should be defined in additional.config file
  824. ## DO NOT UNCOMMENT THIS LINES!
  825.  
  826. ## Set the query to use when determining vhost access
  827. ##
  828. ## {vhost_access_query, {in_group,
  829. ## "ou=${vhost}-users,ou=vhosts,dc=example,dc=com"}},
  830.  
  831. ## Set the query to use when determining resource (e.g., queue) access
  832. ##
  833. ## {resource_access_query, {constant, true}},
  834.  
  835. ## Set queries to determine which tags a user has
  836. ##
  837. ## {tag_queries, []}
  838. # ]},
  839. # -----------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement