summary refs log tree commit diff
path: root/contrib/docker/conf
diff options
context:
space:
mode:
authorkaiyou <pierre@jaury.eu>2018-02-05 21:53:53 +0100
committerkaiyou <pierre@jaury.eu>2018-02-05 21:53:53 +0100
commitcd51931b62aef63dacf4d79cdfa5de56da4eeda6 (patch)
tree374a7781fd367145a3b36c45db4d6e78849d3ff7 /contrib/docker/conf
parentAdd dynamic recaptcha configuration in the Docker image (diff)
downloadsynapse-cd51931b62aef63dacf4d79cdfa5de56da4eeda6.tar.xz
Add dynamic TURN configuration in the Docker image
Diffstat (limited to 'contrib/docker/conf')
-rw-r--r--contrib/docker/conf/homeserver.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/docker/conf/homeserver.yaml b/contrib/docker/conf/homeserver.yaml
index 6f1de24aad..6f8fb24e5f 100644
--- a/contrib/docker/conf/homeserver.yaml
+++ b/contrib/docker/conf/homeserver.yaml
@@ -126,10 +126,19 @@ recaptcha_siteverify_api: "https://www.google.com/recaptcha/api/siteverify"
 
 ## Turn ##
 
+{% if SYNAPSE_TURN_URIS %}
+turn_uris:
+{% for uri in SYNAPSE_TURN_URIS.split(',') %}  - {{ uri }}
+{% endfor %}
+turn_shared_secret: "{{ SYNAPSE_TURN_SECRET }}"
+turn_user_lifetime: "1h"
+turn_allow_guests: True
+{% else %}
 turn_uris: []
 turn_shared_secret: "YOUR_SHARED_SECRET"
 turn_user_lifetime: "1h"
 turn_allow_guests: True
+{% endif %}
 
 ## Registration ##