| 1 |
# Configuration of the MQTT additional transport for the Janus API. |
| 2 |
general: { |
| 3 |
enabled = false # Whether the support must be enabled |
| 4 |
#events = true # Whether to notify event handlers about transport events (default=true) |
| 5 |
json = "compact" # Whether the JSON messages should be indented (pretty), |
| 6 |
# plain (no indentation) or compact (no indentation and no spaces) |
| 7 |
|
| 8 |
url = "tcp://localhost:1883" # The connection URL of the MQTT broker: if you want |
| 9 |
# to use SSL, make sure you type ssl:// instead of tcp://, |
| 10 |
# and that you configure the SSL settings below |
| 11 |
#mqtt_version = "3.1.1" # Protocol version. Available values: 3.1, 3.1.1 (default), 5. |
| 12 |
#client_id = "guest" # Client identifier |
| 13 |
#username = "guest" # Username to use to authenticate, if needed |
| 14 |
#password = "guest" # Password to use to authenticate, if needed |
| 15 |
#keep_alive_interval = 20 # Keep connection for N seconds |
| 16 |
#cleansession = 0 # Clean session flag |
| 17 |
#max_inflight = 10 # Maximum number of inflight messages |
| 18 |
#max_buffered = 100 # Maximum number of buffered messages |
| 19 |
#disconnect_timeout = 100 # Milliseconds to wait before destroying client |
| 20 |
subscribe_topic = "to-janus" # Topic for incoming messages |
| 21 |
#subscribe_qos = 1 # QoS for incoming messages |
| 22 |
publish_topic = "from-janus" # Topic for outgoing messages |
| 23 |
#publish_qos = 1 # QoS for outgoing messages |
| 24 |
|
| 25 |
#ssl_enabled = true # Whether ssl support must be enabled |
| 26 |
#verify_peer = true # Whether peer verification must be enabled |
| 27 |
|
| 28 |
# Certificates to use when SSL support is enabled, if needed |
| 29 |
#cacertfile = /path/to/cacert.pem |
| 30 |
#certfile = /path/to/cert.pem |
| 31 |
#keyfile = /path/to/key.pem |
| 32 |
|
| 33 |
# These options work with MQTT 5 only. |
| 34 |
#vacuum_interval = 60 # Interval for removing old transaction states in seconds. |
| 35 |
#proxy_transaction_user_properties = [] # Array of user property names to copy from the incoming message. |
| 36 |
#add_transaction_user_properties = () # List of user property ["key", "value"] pairs to add. |
| 37 |
} |
| 38 |
|
| 39 |
admin: { |
| 40 |
#admin_enabled = false # Whether the support must be enabled |
| 41 |
subscribe_topic = "to-janus-admin" # Topic for incoming admin messages |
| 42 |
#subscribe_qos = 1 # QoS for incoming admin messages |
| 43 |
publish_topic = "from-janus-admin" # Topic for outgoing admin messages |
| 44 |
#publish_qos = 1 # QoS for outgoing admin messages |
| 45 |
} |
| 46 |
|
| 47 |
status: { |
| 48 |
enabled = false # Whether status messages must be enabled (default: false) |
| 49 |
|
| 50 |
# Initial message sent to status topic. Nothing is being sent if not set. |
| 51 |
#connect_message = "{\"online\": true}" |
| 52 |
|
| 53 |
# Message sent after disconnect or as LWT. Nothing is being sent if not set. |
| 54 |
#disconnect_message = "{\"online\": false}" |
| 55 |
|
| 56 |
#topic = "status" # Status topic (default: "status") |
| 57 |
#qos = 1 # QoS for status messages (default: 1) |
| 58 |
#retain = false # Whether status messages should be retained (default: false) |
| 59 |
} |