mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Avoid to block crear communication when call over dtls is disabled
This commit is contained in:
parent
3d6b4e998c
commit
2f67e05982
2 changed files with 6 additions and 3 deletions
|
@ -13,9 +13,7 @@ cert=/etc/yunohost/certs/__DOMAIN__/crt.pem
|
||||||
pkey=/etc/yunohost/certs/__DOMAIN__/key.pem
|
pkey=/etc/yunohost/certs/__DOMAIN__/key.pem
|
||||||
dh-file=/etc/ssl/private/dh2048.pem
|
dh-file=/etc/ssl/private/dh2048.pem
|
||||||
|
|
||||||
# Block clear communication
|
_TURN_CLEAR_COM_PARAM_
|
||||||
no-udp
|
|
||||||
no-tcp
|
|
||||||
|
|
||||||
# Block old protocols
|
# Block old protocols
|
||||||
no-sslv2
|
no-sslv2
|
||||||
|
|
|
@ -128,8 +128,13 @@ configure_coturn() {
|
||||||
then
|
then
|
||||||
turn_external_ip+="external-ip=$public_ip6\\n"
|
turn_external_ip+="external-ip=$public_ip6\\n"
|
||||||
fi
|
fi
|
||||||
|
local turn_clear_com_param=''
|
||||||
|
if $enable_dtls_for_audio_video_turn_call; then
|
||||||
|
turn_clear_com_param+='# Block clear communication\nno-udp\nno-tcp'
|
||||||
|
fi
|
||||||
|
|
||||||
ynh_add_config --template="turnserver.conf" --destination="/etc/matrix-$app/coturn.conf"
|
ynh_add_config --template="turnserver.conf" --destination="/etc/matrix-$app/coturn.conf"
|
||||||
|
sed -i "s|_TURN_CLEAR_COM_PARAM_|$turn_clear_com_param|g" /etc/matrix-$app/coturn.conf
|
||||||
sed -i "s|_TURN_EXTERNAL_IP_|$turn_external_ip|g" /etc/matrix-$app/coturn.conf
|
sed -i "s|_TURN_EXTERNAL_IP_|$turn_external_ip|g" /etc/matrix-$app/coturn.conf
|
||||||
ynh_store_file_checksum --file=/etc/matrix-$app/coturn.conf
|
ynh_store_file_checksum --file=/etc/matrix-$app/coturn.conf
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue