matrix-rust-intercom/config.example.toml
2020-08-16 20:00:46 -07:00

57 lines
2.2 KiB
TOML

[gstreamer]
# These pipelines can do anything you want, but the active one MUST have a webrtcbin to provide the webrtc side of things
webrtcbin_name = "webrtcpad"
# The active pipeline is the one used during a call
active_pipeline = """
videotestsrc pattern=ball is-live=true ! vp8enc deadline=1 ! rtpvp8pay pt=96 ! webrtcpad.
audiotestsrc is-live=true ! opusenc ! rtpopuspay pt=97 ! webrtcpad.
webrtcbin name=webrtcpad
"""
# The passive pipeline is used when there's no active call going on
# This can be used to put a feed to an rtmp server, display to a screen,
# or otherwise play with the video. If it's present it will be used
# passive_pipeline = "..."
# How to handle the incoming webrtc stream. Defaults to a null sink that does nothing with it.
# provided example just does playback via pulseaudio and dumps the video stream
# incoming_pipeline = "..."
[matrix]
homeserver_url = "..."
username = "..."
password = "..."
### proxy sets the http proxy to use for connecting to the system
# proxy = "http://localhost:8080/"
### ignore_ssl_violations makes it ignore any issues with ssl certificate, i.e. self-signed certificate
# ignore_ssl_violation = true
###
# TBD, force TURN/STUN servers, in gstreamer or in matrix? default to asking the matrix server
[target]
# When the trigger happens (GPIO button on raspberry pi, rest endpoint, whatever)
# This is who we try to call
# TBD handle verification of users differently? maybe allow it to be required
username = "@user:matrix.org"
# TODO use this for video messages too, maybe a way to map buttons to specific users?
leave_mail = false
# This section is optional, but recommended
# It's used to control who can directly call in to the intercom
# when it's not in use otherwise. It's highly recommended that this
# either be restricted to just your home server or to a select number
# of specific users.
[security]
# whitelist_servers = ['matrix.example.com', ...]
# whitelist_users = ['@user:matrix.org', ...]
# The following security options are allowed to use status commands to the intercom bot
# TBD: what those commands do. This does not allow them
# whitelist_status_servers = ['matrix.example.com', ...]
# whitelist_status_users = ['@user:matrix.org', ...]