feat: turn config
Closes https://git.coopcloud.tech/coop-cloud/matrix-synapse/issues/17.
This commit is contained in:
@ -1122,25 +1122,26 @@ oembed:
|
||||
#recaptcha_siteverify_api: "https://my.recaptcha.site"
|
||||
|
||||
|
||||
{{ if eq (env "TURN_ENABLED") "1" }}
|
||||
## TURN ##
|
||||
|
||||
# The public URIs of the TURN server to give to clients
|
||||
#
|
||||
#turn_uris: []
|
||||
turn_uris: ["{{ env "TURN_URI" }}"]
|
||||
|
||||
# The shared secret used to compute passwords for the TURN server
|
||||
#
|
||||
#turn_shared_secret: "YOUR_SHARED_SECRET"
|
||||
turn_shared_secret: "{{ secret "turn_shared_secret" }}"
|
||||
|
||||
# The Username and password if the TURN server needs them and
|
||||
# does not use a token
|
||||
#
|
||||
#turn_username: "TURNSERVER_USERNAME"
|
||||
#turn_password: "TURNSERVER_PASSWORD"
|
||||
turn_username: "{{ env "TURN_USERNAME" }}"
|
||||
turn_password: "{{ secret "turn_password" }}"
|
||||
|
||||
# How long generated TURN credentials last
|
||||
#
|
||||
#turn_user_lifetime: 1h
|
||||
turn_user_lifetime: 1h
|
||||
|
||||
# Whether guests should be allowed to use the TURN server.
|
||||
# This defaults to True, otherwise VoIP will be unreliable for guests.
|
||||
@ -1148,8 +1149,8 @@ oembed:
|
||||
# connect to arbitrary endpoints without having first signed up for a
|
||||
# valid account (e.g. by passing a CAPTCHA).
|
||||
#
|
||||
#turn_allow_guests: true
|
||||
|
||||
turn_allow_guests: {{ env "TURN_ALLOW_GUESTS" }}
|
||||
{{ end }}
|
||||
|
||||
## Registration ##
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user