Debian Codegraph @

conf/janus.transport.rabbitmq.jcfg.sample

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # Configuration of the RabbitMQ additional transport for the Janus API.
2 # This is only useful when you're wrapping Janus requests in your server
3 # application, and handling the communication with clients your own way.
4 # At the moment, only a single "application" can be handled at the same
5 # time, meaning that Janus won't implement multiple queues to handle
6 # multiple concurrent "application servers" taking advantage of its
7 # features. Support for this is planned, though (e.g., through some kind
8 # of negotiation to create queues on the fly). Right now, you can only
9 # configure the address of the RabbitMQ server to use, and the queues to
10 # make use of to receive (to-janus) and send (from-janus) messages
11 # from/to an external application. If you're using the same RabbitMQ
12 # server instance for multiple Janus instances, make sure you configure
13 # different queues for each of them (e.g., from-janus-1/to-janus-1 and
14 # from-janus-2/to-janus-2), or otherwise both the instances will make
15 # use of the same queues and messages will get lost. The integration
16 # is disabled by default, so set enabled=true if you want to use it.
17 general: {
18 enabled = false # Whether the support must be enabled
19 #events = true # Whether to notify event handlers about transport events (default=true)
20 json = "compact" # Whether the JSON messages should be indented (pretty),
21 # plain (no indentation) or compact (no indentation and no spaces)
22 host = "localhost" # The address of the RabbitMQ server
23 #port = 5672 # The port of the RabbitMQ server (5672 by default)
24 #username = "guest" # Username to use to authenticate, if needed
25 #password = "guest" # Password to use to authenticate, if needed
26 #vhost = "/" # Virtual host to specify when logging in, if needed
27
28 #janus_exchange = "janus-exchange" # Exchange for outgoing messages, using default if not provided
29 #janus_exchange_type = "fanout" # Rabbitmq exchange_type can be one of the available types: direct, topic, headers and fanout (fanout by defualt).
30 #queue_name = "janus-gateway" # Queue name for incoming messages (if set and janus_exchange_type is topic/direct, to_janus will be the routing key the queue is bound to the exchange on)
31 to_janus = "to-janus" # Name of the queue for incoming messages if queue_name isn't set, otherwise, the routing key that queue_name is bound to
32 from_janus = "from-janus" # Routing key of the message sent from janus (as well as the name of the outgoing queue if declare_outgoing_queue = true)
33 #declare_outgoing_queue = true # By default (for backwards compatibility), we declare an outgoing queue. Set this to false to disable that behavior
34 #queue_durable = false # Whether or not incoming queue should remain after a RabbitMQ reboot
35 #queue_autodelete = false # Whether or not incoming queue should autodelete after janus disconnects from RabbitMQ
36 #queue_exclusive = false # Whether or not incoming queue should only allow one subscriber
37 #heartbeat = 60 # Defines the seconds without communication that should pass before considering the TCP connection unreachable.
38
39 #ssl_enabled = false # Whether ssl support must be enabled
40 #ssl_verify_peer = true # Whether peer verification must be enabled
41 #ssl_verify_hostname = true # Whether hostname verification must be enabled
42
43 # Certificates to use when SSL support is enabled, if needed
44 #ssl_cacert = "/path/to/cacert.pem"
45 #ssl_cert = "/path/to/cert.pem"
46 #ssl_key = "/path/to/key.pem"
47 }
48
49 # If you want to expose the Admin API via RabbitMQ as well, you need to
50 # specify a different set of queues, as you cannot mix Janus API and
51 # Admin API messaging. The same RabbitMQ server is supposed to be used.
52 # Notice that by default the Admin API support via RabbitMQ is disabled.
53 admin: {
54 #admin_enabled = false # Whether the support must be enabled
55
56 #queue_name_admin = "janus-gateway-admin" # Queue name for incoming admin messages (if set and janus_exchange_type is topic/direct, to_janus_admin will be the the routing key the queue is bound to the exchange on)
57 #to_janus_admin = "to-janus-admin" # Name of the queue for incoming messages if queue_name_admin isn't set, otherwise, the routing key that queue_name_admin is bound to
58 #from_janus_admin = "from-janus-admin" # Routing key of the message sent from janus (as well as the name of the outgoing queue if declare_outgoing_queue_admin = true)
59 #declare_outgoing_queue_admin = true # By default (for backwards compatibility), we declare an outgoing queue. Set this to false to disable that behavior
60 #queue_durable_admin = false # Whether or not incoming queue should remain after a RabbitMQ reboot
61 #queue_autodelete_admin = false # Whether or not incoming queue should autodelete after janus disconnects from RabbitMQ
62 #queue_exclusive_admin = false # Whether or not incoming queue should only allow one subscriber
63
64 }