diff --git a/README_fr.md b/README_fr.md new file mode 100644 index 0000000..fad4a6e --- /dev/null +++ b/README_fr.md @@ -0,0 +1,68 @@ +# Coturn server pour YunoHost + +[![Integration level](https://dash.yunohost.org/integration/coturn.svg)](https://dash.yunohost.org/appci/app/coturn) ![](https://ci-apps.yunohost.org/ci/badges/coturn.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/coturn.maintain.svg) +[![Installer Coturn avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=coturn) + +*[Read this readme in english.](./README.md)* + +> *Ce package vous permet d'installer Coturn rapidement et simplement sur un serveur YunoHost. +Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install) pour apprendre comment l'installer.* + +## Overview +Serveur TURN et STUN pour VoIP. STUN (Session Traversal Utilities for NAT) et TURN (Traversal Using Relays around NAT) sont des protocoles qui peuvent être utilisés pour fournir une traversée NAT pour VoIP et WebRTC. Ce package fournit un serveur et une passerelle de traversée NAT du trafic multimédia VoIP. + +**Version incluse :** 4.5.1.1 + +## Configuration + +Vous devez installer coTURN à la racine ou un sous-domaine comme `turn.domain.lts` + +How to configure this app: a plain file with SSH. + +## 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. +``` +TURN URI : turn::5349 +TURN username: +TURN password: +``` + +## Documentation + + * Documentation officielle : https://github.com/coturn/coturn/wiki + * Documentation YunoHost : Si une documentation spécifique est nécessaire, n'hésitez pas à contribuer. + +#### Support multi-utilisateur + +#### Architectures supportées + +* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/coturn%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/coturn/) +* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/coturn%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/coturn/) + +## Limitations + +* Limitations connues. + +## Informations additionnelles + +* Autres informations que vous souhaitez ajouter sur cette application. + +## Links + + * Signaler un bug : https://github.com/YunoHost-Apps/coturn_ynh/issues + * Site de l'application : https://github.com/coturn/coturn + * Site web YunoHost : https://yunohost.org/ + +--- + +## Informations pour les développeurs + +Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/coturn_ynh/tree/testing). + +Pour essayer la branche testing, procédez comme suit. +``` +sudo yunohost app install https://github.com/YunoHost-Apps/coturn_ynh/tree/testing --debug +ou +sudo yunohost app upgrade coturn -u https://github.com/YunoHost-Apps/coturn_ynh/tree/testing --debug +``` diff --git a/scripts/upgrade b/scripts/upgrade index 2eaddf6..5cf0cd7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -12,7 +12,7 @@ source /usr/share/yunohost/helpers #================================================= # LOAD SETTINGS #================================================= -ynh_script_progression --message="Loading installation settings..." --time --weight=1 +ynh_script_progression --message="Loading installation settings..." --weight=1 app=$YNH_APP_INSTANCE_NAME @@ -82,7 +82,7 @@ ynh_add_systemd_config #================================================= # SET COTURN CONFIG #================================================= -ynh_script_progression --message="Configuring Coturn..." --weight=1 +ynh_script_progression --message="Configuring Coturn..." --weight=2 # WARNING: theses command are used in INSTALL, UPGRADE # For any update do it in all files @@ -138,17 +138,17 @@ ynh_replace_string --match_string="__DATA_PATH__" --replace_string=$data_path -- #================================================= # Fix issue about certificates access -if [ ! $(grep "ssl-cert:x:[0-9]*:.*$app" /etc/group) ] -then - ynh_script_progression --message="Use standard access for certificate..." --weight=1 +# if [ ! $(grep "ssl-cert:x:[0-9]*:.*$app" /etc/group) ] +# then +# ynh_script_progression --message="Use standard access for certificate..." --weight=1 - adduser turnserver ssl-cert -fi +# adduser turnserver ssl-cert +# fi #================================================= # SETUP LOGROTATE #================================================= -ynh_script_progression --message="Configuring log rotation..." --weight=1 +ynh_script_progression --message="Configuring log rotation..." --weight=5 ynh_use_logrotate --logfile "/var/log/$app"