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:
parent
2eb0edc76c
commit
3e644db1b5
2 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
lt-cred-mech
|
|
||||||
use-auth-secret
|
use-auth-secret
|
||||||
static-auth-secret={{ turnserver_pwd }}
|
static-auth-secret={{ turnserver_pwd }}
|
||||||
|
cli-password={{ turnserver_cli_pwd }}
|
||||||
realm={{ domain }}
|
realm={{ domain }}
|
||||||
|
|
||||||
tls-listening-port={{ port_turnserver_tls }}
|
tls-listening-port={{ port_turnserver_tls }}
|
||||||
|
|
|
@ -109,6 +109,11 @@ ensure_vars_set() {
|
||||||
ynh_app_setting_set --app="$app" --key=turnserver_pwd --value="$turnserver_pwd"
|
ynh_app_setting_set --app="$app" --key=turnserver_pwd --value="$turnserver_pwd"
|
||||||
fi
|
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:-}" ]
|
if [ -z "${web_client_location:-}" ]
|
||||||
then
|
then
|
||||||
web_client_location="https://matrix.to/"
|
web_client_location="https://matrix.to/"
|
||||||
|
|
Loading…
Reference in a new issue