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

Merge branch 'testing' into matrix_v2

This commit is contained in:
Josué Tille 2024-03-09 21:00:37 +01:00
commit 1efee6059b
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
2 changed files with 6 additions and 3 deletions

View file

@ -13,9 +13,7 @@ cert=/etc/yunohost/certs/__DOMAIN__/crt.pem
pkey=/etc/yunohost/certs/__DOMAIN__/key.pem
dh-file=/etc/ssl/private/dh2048.pem
# Block clear communication
no-udp
no-tcp
_TURN_CLEAR_COM_PARAM_
# Block old protocols
no-sslv2

View file

@ -135,8 +135,13 @@ configure_coturn() {
then
turn_external_ip+="external-ip=$public_ip6\\n"
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"
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
ynh_store_file_checksum --file=/etc/matrix-$app/coturn.conf
}