From 3e644db1b5a50a789b057571e20e32926b6011f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 22 Jun 2024 17:39:59 +0200 Subject: [PATCH] Fix turnserver config --- conf/turnserver.conf | 2 +- scripts/_common.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/conf/turnserver.conf b/conf/turnserver.conf index 420503e..9575f9e 100644 --- a/conf/turnserver.conf +++ b/conf/turnserver.conf @@ -1,6 +1,6 @@ -lt-cred-mech use-auth-secret static-auth-secret={{ turnserver_pwd }} +cli-password={{ turnserver_cli_pwd }} realm={{ domain }} tls-listening-port={{ port_turnserver_tls }} diff --git a/scripts/_common.sh b/scripts/_common.sh index 1c1c832..99f95bb 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -109,6 +109,11 @@ ensure_vars_set() { ynh_app_setting_set --app="$app" --key=turnserver_pwd --value="$turnserver_pwd" fi + if [ -z "${turnserver_cli_pwd:-}" ]; then + turnserver_cli_pwd=$(ynh_string_random --length=30) + ynh_app_setting_set --app="$app" --key=turnserver_cli_pwd --value="$turnserver_cli_pwd" + fi + if [ -z "${web_client_location:-}" ] then web_client_location="https://matrix.to/"