1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Fix turnserver config

This commit is contained in:
Josué Tille 2024-06-22 17:39:59 +02:00
parent 2eb0edc76c
commit 3e644db1b5
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
2 changed files with 6 additions and 1 deletions

View file

@ -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 }}

View file

@ -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/"