58 lines
2.8 KiB
Plaintext
58 lines
2.8 KiB
Plaintext
# This configures the MQTT event handler. Events are sent either on
|
|
# one topic or on a topic per event type.
|
|
#
|
|
# By default, configuration topics for handle and webrtc event types
|
|
# with the base topic are configured to /janus/events, e.g.:
|
|
# /janus/events/handle
|
|
# /janus/events/webrtc
|
|
|
|
general: {
|
|
enabled = false # By default the module is not enabled
|
|
events = "all" # Comma separated list of the events mask you're interested
|
|
# in. Valid values are none, sessions, handles, jsep, webrtc,
|
|
# media, plugins, transports, core, external and all. By
|
|
# default we subscribe to everything (all)
|
|
json = "indented" # Whether the JSON messages should be indented (default),
|
|
# plain (no indentation) or compact (no indentation and no spaces)
|
|
|
|
url = "tcp://localhost:1883" # The URL of the MQTT server. "tcp://" and "ssl://" protocols are supported.
|
|
#mqtt_version = "3.1.1" # Protocol version. Available values: 3.1, 3.1.1 (default), 5.
|
|
client_id = "janus.example.com" # Janus client id. You have to configure a unique ID (default: guest).
|
|
#keep_alive_interval = 20 # Keep connection for N seconds (default: 30)
|
|
#cleansession = 0 # Clean session flag (default: off)
|
|
#retain = 0 # Default MQTT retain flag for published events
|
|
#qos = 1 # Default MQTT QoS for published events
|
|
#max_inflight = 10 # Maximum number of inflight messages
|
|
#max_buffered = 100 # Maximum number of buffered messages
|
|
#disconnect_timeout = 100 # Seconds to wait before destroying client
|
|
#username = "guest" # Username for authentication (default: no authentication)
|
|
#password = "guest" # Password for authentication (default: no authentication)
|
|
#topic = "/janus/events" # Base topic (default: /janus/events)
|
|
#addevent = true # Whether we should add the event type to the base topic
|
|
|
|
#tls_enable = false # Whether TLS support must be enabled
|
|
|
|
# Initial message sent to status topic
|
|
#connect_status = "{\"event\": \"connected\", \"eventhandler\": \"janus.eventhandler.mqttevh\"}"
|
|
# Message sent after disconnect or as LWT
|
|
#disconnect_status = "{\"event\": \"disconnected\"}"
|
|
|
|
#will_enabled = false # Whether to enable LWT (default: false)
|
|
#will_retain = 1 # Whether LWT should be retained (default: 1)
|
|
#will_qos = 0 # QoS for LWT (default: 0)
|
|
|
|
# Additional parameters if "mqtts://" schema is used
|
|
#tls_verify_peer = true # Whether peer verification must be enabled
|
|
#tls_verify_hostname = true # Whether hostname verification must be enabled
|
|
|
|
# Certificates to use when TLS support is enabled, if needed
|
|
#tls_cacert = "/path/to/cacert.pem"
|
|
tls_client_cert = "/etc/ssl/certs/ssl-cert-snakeoil.pem"
|
|
tls_client_key = "/etc/ssl/private/ssl-cert-snakeoil.key"
|
|
#tls_ciphers
|
|
#tls_version
|
|
|
|
# These options work with MQTT 5 only.
|
|
#add_user_properties = () # List of user property ["key", "value"] pairs to add.
|
|
}
|