[{listener_port,
  "stream.listeners.tcp.1 = 12345",
  [{rabbitmq_stream,[{tcp_listeners,[12345]}]}],
  [rabbitmq_stream]},
 {listeners_ip,
  "stream.listeners.tcp.1 = 127.0.0.1:5552
   stream.listeners.tcp.2 = ::1:5552",
  [{rabbitmq_stream,[{tcp_listeners,[{"127.0.0.1",5552},{"::1",5552}]}]}],
  [rabbitmq_stream]},

 {listener_tcp_options,
  "stream.listeners.tcp.1 = 127.0.0.1:5552
   stream.listeners.tcp.2 = ::1:5552

   stream.tcp_listen_options.backlog = 2048
   stream.tcp_listen_options.recbuf = 8192
   stream.tcp_listen_options.sndbuf = 8192

   stream.tcp_listen_options.keepalive = true
   stream.tcp_listen_options.nodelay   = true

   stream.tcp_listen_options.exit_on_close = true

   stream.tcp_listen_options.send_timeout = 120
",
  [{rabbitmq_stream,[
                    {tcp_listeners,[
                                    {"127.0.0.1",5552},
                                    {"::1",5552}
                                   ]}
                    , {tcp_listen_options, [
                                            {backlog, 2048},
                                            {exit_on_close, true},

                                            {recbuf, 8192},
                                            {sndbuf, 8192},

                                            {send_timeout, 120},

                                            {keepalive, true},
                                            {nodelay,   true}
                                           ]}
                   ]}],
  [rabbitmq_stream]},
 {defaults,
  "stream.frame_max = 1048576
   stream.heartbeat = 60
   stream.initial_credits = 50000
   stream.credits_required_for_unblocking = 12500",
  [{rabbitmq_stream,[{initial_credits, 50000},
                     	{credits_required_for_unblocking, 12500},
                     	{frame_max, 1048576},
                     	{heartbeat, 60}]}],
  [rabbitmq_stream]},
  {advertised_host_port,
      "stream.advertised_host = some-host
       stream.advertised_tls_host = some-other-host
       stream.advertised_port = 5556
       stream.advertised_tls_port = 5553",
      [{rabbitmq_stream,[{advertised_host, <<"some-host">>},
                          {advertised_tls_host, <<"some-other-host">>},
                         	{advertised_port, 5556},
                         	{advertised_tls_port, 5553}]}],
      [rabbitmq_stream]},
  {credits,
    "stream.frame_max = 2097152
        stream.heartbeat = 120",
    [{rabbitmq_stream,[{frame_max, 2097152},
                       	{heartbeat, 120}]}],
    [rabbitmq_stream]},
  {protocol,
      "stream.initial_credits = 100000
          stream.credits_required_for_unblocking = 25000",
      [{rabbitmq_stream,[{initial_credits, 100000},
                         	{credits_required_for_unblocking, 25000}]}],
      [rabbitmq_stream]}
].
