1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/coturn_ynh.git synced 2024-09-03 18:16:32 +02:00
This commit is contained in:
Éric Gaspar 2023-06-03 15:20:02 +02:00
parent 0c341830aa
commit 7b75ef1e2d
6 changed files with 1 additions and 25 deletions

View file

@ -1,9 +1,3 @@
## Configuration
You need to install TURN server in a root or subdomain like `__DOMAIN__`
How to configure this app: a plain file with SSH.
## Testing
For testing we can use Trickle-Ice testing tool. Go to [trickle-ice page](https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice) and enter following details.

View file

@ -1,7 +1,3 @@
## Configuration
Vous devez installer coTURN à la racine ou un sous-domaine comme `__DOMAIN__`
## Testing
Pour les tests, vous pouvez utiliser l'outil de test Trickle-Ice. Accédez à la page [trickle-ice](https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice) et entrez les détails suivants.

1
doc/DESCRIPTION_fr.md Normal file
View file

@ -0,0 +1 @@
Le serveur TURN est un serveur et une passerelle NAT pour le trafic multimédia VoIP. Il peut également être utilisé comme serveur et passerelle TURN de trafic réseau à usage général.

View file

@ -20,9 +20,6 @@ ynh_app_setting_set --app=$app --key=no_sso --value=true
#=================================================
ynh_script_progression --message="Creating a dhparam file..." --weight=3
# WARNING : theses command are used in INSTALL, UPGRADE, RESTORE
# For any update do it in all files
# Make dhparam cert for Coturn if it doesn't exist
if [ ! -e /etc/ssl/private/dh2048.pem ]
then
@ -55,9 +52,6 @@ ynh_add_systemd_config
#=================================================
ynh_script_progression --message="Configuring Coturn..." --weight=1
# WARNING: theses command are used in INSTALL, UPGRADE
# For any update do it in all files
# Find password for turnserver
turnserver_pwd=$(ynh_string_random --length=30)
ynh_app_setting_set --app=$app --key=turnserver_pwd --value=$turnserver_pwd
@ -82,7 +76,6 @@ ynh_store_file_checksum --file="$coturn_config_path"
# ADD SCRIPT FOR COTURN CRON
#=================================================
# WARNING : theses command are used in INSTALL, UPGRADE
# For any update do it in all files
cp -f ../sources/Coturn_config_rotate.sh $data_dir/
ynh_replace_string --match_string="__APP__" --replace_string=$app --target_file=$data_dir/Coturn_config_rotate.sh

View file

@ -42,9 +42,6 @@ adduser turnserver ssl-cert
#=================================================
ynh_script_progression --message="Creating a dhparam file..." --weight=3
# WARNING : theses command are used in INSTALL, UPGRADE, RESTORE
# For any update do it in all files
# Make dhparam cert for Coturn if it doesn't exist
if [ ! -e /etc/ssl/private/dh2048.pem ]
then

View file

@ -49,9 +49,6 @@ ynh_add_systemd_config
#=================================================
ynh_script_progression --message="Configuring Coturn..." --weight=2
# WARNING: theses command are used in INSTALL, UPGRADE
# For any update do it in all files
coturn_config_path="/etc/turnserver.conf"
ynh_add_config --template="../conf/turnserver.conf" --destination="$coturn_config_path"
@ -72,8 +69,6 @@ ynh_store_file_checksum --file="$coturn_config_path"
# ADD SCRIPT FOR COTURN CRON
#=================================================
# WARNING : theses command are used in INSTALL, UPGRADE
# For any update do it in all files
cp -f ../sources/Coturn_config_rotate.sh $data_dir/
ynh_replace_string --match_string="__APP__" --replace_string=$app --target_file=$data_dir/Coturn_config_rotate.sh