diff --git a/matrix_extDB/matrix_noDB/.env b/matrix_extDB/matrix_noDB/.env index a444142..94e1e91 100644 --- a/matrix_extDB/matrix_noDB/.env +++ b/matrix_extDB/matrix_noDB/.env @@ -10,3 +10,6 @@ EMAIL=technik@ungleich.ch STAGING=no redishost=redis-node1.ungleich.cloud redisport=7300 +turnhost=turn.tws-matrix.ungleich.cloud +turnport=3478 +turnsecret=iasdfsadfasdfasdfasdffsdfasdfsdfsdf diff --git a/matrix_extDB/matrix_noDB/docker-compose.yaml b/matrix_extDB/matrix_noDB/docker-compose.yaml index b7e667e..98492fa 100644 --- a/matrix_extDB/matrix_noDB/docker-compose.yaml +++ b/matrix_extDB/matrix_noDB/docker-compose.yaml @@ -14,6 +14,9 @@ services: - DBPASSWORD=${dbpassword} - REDISHOST=${redishost} - REDISPORT=${redisport} + - TURNPORT=${turnport} + - TURNHOST=${turnhost} + - TURNSECRET=${turnsecret} network_mode: "host" volumes: - ./synapse:/data diff --git a/matrix_extDB/matrix_noDB/synapse/homeserver.yaml.sh b/matrix_extDB/matrix_noDB/synapse/homeserver.yaml.sh index 98802e9..f1e1385 100755 --- a/matrix_extDB/matrix_noDB/synapse/homeserver.yaml.sh +++ b/matrix_extDB/matrix_noDB/synapse/homeserver.yaml.sh @@ -1154,10 +1154,12 @@ url_preview_accept_language: # The public URIs of the TURN server to give to clients # #turn_uris: [] - +turn_uris: + - "turn:$TURNHOST:$TURNPORT?transport=tcp" + - "turn:$TURNHOST:$TURNPORT?transport=udp" # The shared secret used to compute passwords for the TURN server # -#turn_shared_secret: "YOUR_SHARED_SECRET" +turn_shared_secret: $TURNSECRET # The Username and password if the TURN server needs them and # does not use a token