From 0713b53ee85130baeb203317f8e174dc82a0540f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 24 Jul 2021 15:27:41 +0200 Subject: [PATCH 1/6] Create DISCLAIMER_fr.md --- doc/DISCLAIMER_fr.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 doc/DISCLAIMER_fr.md diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md new file mode 100644 index 0000000..c5f5f5f --- /dev/null +++ b/doc/DISCLAIMER_fr.md @@ -0,0 +1,40 @@ +## Vue d'ensemble + +### Qu'est-ce que PeerTube ? +PeerTube est une plateforme de streaming vidéo fédérée (ActivityPub) utilisant P2P (BitTorrent) directement dans le navigateur Web, en utilisant WebTorrent . + +### Pourquoi PeerTube? + +Nous ne pouvons pas créer d'alternatives de streaming vidéo FOSS à YouTube, Dailymotion, Vimeo... avec un logiciel centralisé. Une organisation seule ne peut pas avoir assez d'argent pour payer la bande passante et le stockage vidéo de son serveur. +Nous avons donc besoin d'un réseau décentralisé de serveurs « semant » des vidéos (comme [Hubzilla YunoHost](https://github.com/YunoHost-Apps/hubzilla_ynh), [Friendica YunoHost](https://github.com/YunoHost-Apps/friendica_ynh), [Mastodon YunoHost](https://github.com/YunoHost-Apps/mastodon_ynh)), [Diaspora](https://github.com/diaspora/diaspora) ([Diaspora YunoHost](https://github.com/YunoHost-Apps/diaspora_ynh)),[Funkwhale](https://funkwhale.audio) ([Funkwhale YunoHost](https://github.com/YunoHost-Apps/funkwhale_ynh)). +Mais ce n'est pas suffisant car une vidéo pourrait devenir célèbre et surcharger le serveur. C'est la raison pour laquelle nous devons utiliser un protocole P2P pour limiter la charge du serveur. Grâce à [WebTorrent](https://github.com/feross/webtorrent), nous pouvons faire du P2P (donc BitTorrent) dans le navigateur Web, dès aujourd'hui. + +### Pourquoi est-ce cool ? + +Les serveurs sont gérés indépendamment par différentes personnes et organisations. Ils peuvent appliquer des politiques de modération extrêmement différentes, afin que vous puissiez en trouver ou en créer une qui correspond parfaitement à vos goûts. + +En regardant une vidéo, vous aidez l'hébergeur à la diffuser en devenant vous-même un diffuseur de la vidéo. Chaque instance n'a pas besoin de beaucoup d'argent pour diffuser les vidéos de ses utilisateurs. + +## Points importants à lire avant l'installation + +1. Nécessite un **domaine dédié** comme **peertube.domain.tld**. +1. Le nom d'utilisateur de l'administrateur est: **root**. +1. **Le mot de passe administrateur et la configuration LDAP** seront envoyés à l'adresse email indiquée au moment de l'installation. +1. L'URL ne peut pas être modifiée une fois sélectionnée. Choisissez judicieusement le domaine. +1. Vous avez besoin de plus de **1 Go** de RAM. Si vous ne l'avez pas, veuillez créer une **mémoire swap**. + + + $ dd if=/dev/zero of=/swapfile bs=1024 count=1048576 + $ mkswap /swapfile + $ swapon /swapfile + $ echo "/swapfile swap swap defaults 0 0" >> /etc/fstab + +1. Cette application est **multi-instance** (vous pouvez avoir plus d'une instance PeerTube en cours d'exécution sur un serveur YunoHost) +1. **Si vous êtes hébergé sur une machine virtuelle OVH ou rencontrez `gyp ERR! configure error`, veuillez passer à [ovh_fix](https://github.com/YunoHost-Apps/peertube_ynh/tree/ovh_fix)** + +## Caractéristiques spécifiques YunoHost + +#### Support multi-utilisateur + +* L'authentification LDAP est prise en charge, les instructions de configuration sont envoyées à l'adresse email indiquée au moment de l'installation +* L'authentification HTTP n'est pas prise en charge From 9bff99c2ec2c0f986fb8d7dcd837ac0401043295 Mon Sep 17 00:00:00 2001 From: Florent Date: Sun, 15 Aug 2021 16:44:41 +0200 Subject: [PATCH 2/6] Fix plugins cannot be installed --- conf/systemd.service | 1 + manifest.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index b2b50fb..07fff0d 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,6 +6,7 @@ After=network.target postgresql.service redis-server.service Type=simple Environment=NODE_ENV=production Environment=NODE_CONFIG_DIR=__FINALPATH__/config +Environment="__YNH_NODE_LOAD_PATH__" User=__APP__ Group=__APP__ ExecStart=__YNH_NODE__ __FINALPATH__/dist/server diff --git a/manifest.json b/manifest.json index 7f0891d..dbd69db 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Video streaming platform using P2P directly in the web browser, connected to a federated network", "fr": "Plateforme de diffusion vidéo par P2P directement dans le navigateur, et connectée à un réseau fédéralisé" }, - "version": "3.3.0~ynh2", + "version": "3.3.0~ynh3", "url": "https://github.com/Chocobozzz/PeerTube", "upstream": { "license": "AGPL-3.0-only", From ce682e31cdfa1b0a931fdef601181e0fc2dbf45b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 16 Aug 2021 22:07:09 +0200 Subject: [PATCH 3/6] Update check_process --- check_process | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check_process b/check_process index f460c88..1996e29 100644 --- a/check_process +++ b/check_process @@ -16,6 +16,8 @@ upgrade=1 from_commit=f4b43fd85ad3a169d27c53865a13548e44f17ebf # 3.2.1~ynh4 upgrade=1 from_commit=08bf3fce3ad99e27e7f7d251838a9f9c63243e44 + # 3.3.0~ynh2 + upgrade=1 from_commit=f3bb02002c8fa28748744302475139b6fcf7c651 backup_restore=1 multi_instance=0 port_already_use=0 @@ -27,4 +29,6 @@ Notification=yes ; commit=f4b43fd85ad3a169d27c53865a13548e44f17ebf name=3.2.1~ynh1 ; commit=08bf3fce3ad99e27e7f7d251838a9f9c63243e44 - name=3.2.1~ynh4 + name=3.2.1~ynh4 + ; commit=f3bb02002c8fa28748744302475139b6fcf7c651 + name=3.3.0~ynh2 From c979fab081921d5a3df831f45b1394d7f55c29fc Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 19 Aug 2021 23:08:07 +0200 Subject: [PATCH 4/6] Increase max upload size in nginx --- conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 94f01fd..7acd1e7 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -43,8 +43,8 @@ location = /api/v1/videos/upload { # Note that temporary space is needed equal to the total size of all concurrent uploads. # This data gets stored in /var/lib/nginx by default, so you may want to put this directory # on a dedicated filesystem. - client_max_body_size 12G; # default is 1M - more_set_headers "X-File-Maximum-Size : 8G always"; # inform backend of the set value in bytes before mime-encoding (x * 1.4 >= client_max_body_size) + client_max_body_size 24G; # default is 1M + more_set_headers "X-File-Maximum-Size : 16G always"; # inform backend of the set value in bytes before mime-encoding (x * 1.4 >= client_max_body_size) try_files /dev/null @api; } From be87cf80c0bd2de6de98d1bd1cd8655720c1850e Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 25 Aug 2021 20:13:27 +0200 Subject: [PATCH 5/6] Upgrade to 3.3.0~ynh3 --- check_process | 4 ++++ manifest.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/check_process b/check_process index 1996e29..548c20e 100644 --- a/check_process +++ b/check_process @@ -18,6 +18,8 @@ upgrade=1 from_commit=08bf3fce3ad99e27e7f7d251838a9f9c63243e44 # 3.3.0~ynh2 upgrade=1 from_commit=f3bb02002c8fa28748744302475139b6fcf7c651 + # 3.3.0~ynh3 + upgrade=1 from_commit=ed59a268e93910f8b35b0f87399f91b8cad9ede0 backup_restore=1 multi_instance=0 port_already_use=0 @@ -32,3 +34,5 @@ Notification=yes name=3.2.1~ynh4 ; commit=f3bb02002c8fa28748744302475139b6fcf7c651 name=3.3.0~ynh2 + ; commit=ed59a268e93910f8b35b0f87399f91b8cad9ede0 + name=3.3.0~ynh3 diff --git a/manifest.json b/manifest.json index dbd69db..61d69b9 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Video streaming platform using P2P directly in the web browser, connected to a federated network", "fr": "Plateforme de diffusion vidéo par P2P directement dans le navigateur, et connectée à un réseau fédéralisé" }, - "version": "3.3.0~ynh3", + "version": "3.3.0~ynh4", "url": "https://github.com/Chocobozzz/PeerTube", "upstream": { "license": "AGPL-3.0-only", From ca2029ebd0ca414e6c67c7aba9eb2aa390f34813 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 9 Sep 2021 15:07:15 +0200 Subject: [PATCH 6/6] 3.4.0 --- conf/app.src | 4 ++-- manifest.json | 2 +- scripts/restore | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/conf/app.src b/conf/app.src index 77dd755..1a0e595 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/Chocobozzz/PeerTube/releases/download/v3.3.0/peertube-v3.3.0.tar.xz -SOURCE_SUM=da96c0f47949cb2b59b9bf429499eb801998337d2e085e20b87729300d147539 +SOURCE_URL=https://github.com/Chocobozzz/PeerTube/releases/download/v3.4.0/peertube-v3.4.0.tar.xz +SOURCE_SUM=90b965d4d649ac40ce32b3a9cb51667dd9ef2381f9b963c75a313df102cb915e SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.xz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index 61d69b9..d762706 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Video streaming platform using P2P directly in the web browser, connected to a federated network", "fr": "Plateforme de diffusion vidéo par P2P directement dans le navigateur, et connectée à un réseau fédéralisé" }, - "version": "3.3.0~ynh4", + "version": "3.4.0~ynh1", "url": "https://github.com/Chocobozzz/PeerTube", "upstream": { "license": "AGPL-3.0-only", diff --git a/scripts/restore b/scripts/restore index 850c13e..e353cd5 100644 --- a/scripts/restore +++ b/scripts/restore @@ -42,8 +42,6 @@ datadir=$(ynh_app_setting_get --app=$app --key=datadir) #================================================= ynh_script_progression --message="Validating restoration parameters..." -ynh_webpath_available --domain=$domain --path_url=$path_url \ - || ynh_die --message="Path not available: ${domain}${path_url}" test ! -d $final_path \ || ynh_die --message="There is already a directory: $final_path "