1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00

Merge pull request #430 from YunoHost-Apps/testing

This commit is contained in:
tituspijean 2024-04-14 11:35:49 +02:00 committed by GitHub
commit 7574e2df4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 117 additions and 12 deletions

View file

@ -1,6 +1,7 @@
# All available README files by language # All available README files by language
- [Read the README in English](README.md) - [Read the README in English](README.md)
- [Irakurri README euskaraz](README_eu.md)
- [Lire le README en français](README_fr.md) - [Lire le README en français](README_fr.md)
- [Le o README en galego](README_gl.md) - [Le o README en galego](README_gl.md)
- [Leggi il “README” in italiano](README_it.md) - [阅读中文(简体)的 README](README_zh_Hans.md)

View file

@ -9,7 +9,7 @@ It shall NOT be edited by hand.
[![Install PeerTube with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=peertube) [![Install PeerTube with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=peertube)
*[Read this README is other languages.](./ALL_README.md)* *[Read this README in other languages.](./ALL_README.md)*
> *This package allows you to install PeerTube quickly and simply on a YunoHost server.* > *This package allows you to install PeerTube quickly and simply on a YunoHost server.*
> *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.* > *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.*
@ -19,7 +19,7 @@ It shall NOT be edited by hand.
PeerTube is a decentralized and federated video hosting software. To publish videos, the user must register with a host (called an instance). Each host has its own conditions of use (storage space per user, moderation rules, themes, etc.). Thanks to WebTorrent, if several people view the same video, fragments of it are exchanged between people so as not to overload the instance. Decentralized: Each instance can follow one or more other PeerTube instances in order to allow its users to view their videos. Federated: Via the ActivityPub protocol, Peertube can interact with other software that is part of the Fediverse, such as Mastodon for example. PeerTube is a decentralized and federated video hosting software. To publish videos, the user must register with a host (called an instance). Each host has its own conditions of use (storage space per user, moderation rules, themes, etc.). Thanks to WebTorrent, if several people view the same video, fragments of it are exchanged between people so as not to overload the instance. Decentralized: Each instance can follow one or more other PeerTube instances in order to allow its users to view their videos. Federated: Via the ActivityPub protocol, Peertube can interact with other software that is part of the Fediverse, such as Mastodon for example.
**Shipped version:** 6.0.3~ynh1 **Shipped version:** 6.0.4~ynh1
**Demo:** <http://peertube.cpy.re> **Demo:** <http://peertube.cpy.re>

50
README_eu.md Normal file
View file

@ -0,0 +1,50 @@
<!--
Ohart ongi: README hau automatikoki sortu da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>ri esker
EZ editatu eskuz.
-->
# PeerTube YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/peertube.svg)](https://dash.yunohost.org/appci/app/peertube) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/peertube.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/peertube.maintain.svg)
[![Instalatu PeerTube YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=peertube)
*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
> *Pakete honek PeerTube YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
## Aurreikuspena
PeerTube is a decentralized and federated video hosting software. To publish videos, the user must register with a host (called an instance). Each host has its own conditions of use (storage space per user, moderation rules, themes, etc.). Thanks to WebTorrent, if several people view the same video, fragments of it are exchanged between people so as not to overload the instance. Decentralized: Each instance can follow one or more other PeerTube instances in order to allow its users to view their videos. Federated: Via the ActivityPub protocol, Peertube can interact with other software that is part of the Fediverse, such as Mastodon for example.
**Paketatutako bertsioa:** 6.0.4~ynh1
**Demoa:** <http://peertube.cpy.re>
## Pantaila-argazkiak
![PeerTube(r)en pantaila-argazkia](./doc/screenshots/screenshot1.jpg)
## Dokumentazioa eta baliabideak
- Aplikazioaren webgune ofiziala: <https://joinpeertube.org/fr>
- Administratzaileen dokumentazio ofiziala: <https://docs.joinpeertube.org>
- Jatorrizko aplikazioaren kode-gordailua: <https://github.com/Chocobozzz/PeerTube>
- YunoHost Denda: <https://apps.yunohost.org/app/peertube>
- Eman errore baten berri: <https://github.com/YunoHost-Apps/peertube_ynh/issues>
## Garatzaileentzako informazioa
Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/peertube_ynh/tree/testing).
`testing` abarra probatzeko, ondorengoa egin:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/peertube_ynh/tree/testing --debug
edo
sudo yunohost app upgrade peertube -u https://github.com/YunoHost-Apps/peertube_ynh/tree/testing --debug
```
**Informazio gehiago aplikazioaren paketatzeari buruz:** <https://yunohost.org/packaging_apps>

View file

@ -19,7 +19,7 @@ Il NE doit PAS être modifié à la main.
PeerTube est un logiciel décentralisé et fédéré dhébergement de vidéos. Pour publier des vidéos, lutilisateur doit sinscrire chez un hébergeur (nommé instance). Chaque hébergeur possède ses conditions dutilisation (espace de stockage par utilisateur, règles de modération, thématiques, etc.). Grâce à WebTorrent, si plusieurs personnes consultent une même vidéo, des fragments de celle-ci sont échangés entre les personnes afin de ne pas surcharger linstance. Décentralisé : Chaque instance peut suivre une ou plusieurs autres instances PeerTube afin de permettre à ses utilisateurs de visionner les vidéos de celles-ci. Fédéré : Via le protocole ActivityPub, Peertube peut interagir avec dautres logiciels qui font partie du Fediverse, comme Mastodon par exemple. PeerTube est un logiciel décentralisé et fédéré dhébergement de vidéos. Pour publier des vidéos, lutilisateur doit sinscrire chez un hébergeur (nommé instance). Chaque hébergeur possède ses conditions dutilisation (espace de stockage par utilisateur, règles de modération, thématiques, etc.). Grâce à WebTorrent, si plusieurs personnes consultent une même vidéo, des fragments de celle-ci sont échangés entre les personnes afin de ne pas surcharger linstance. Décentralisé : Chaque instance peut suivre une ou plusieurs autres instances PeerTube afin de permettre à ses utilisateurs de visionner les vidéos de celles-ci. Fédéré : Via le protocole ActivityPub, Peertube peut interagir avec dautres logiciels qui font partie du Fediverse, comme Mastodon par exemple.
**Version incluse:** 6.0.3~ynh1 **Version incluse:** 6.0.4~ynh1
**Démo:** <http://peertube.cpy.re> **Démo:** <http://peertube.cpy.re>

View file

@ -19,7 +19,7 @@ NON debe editarse manualmente.
PeerTube is a decentralized and federated video hosting software. To publish videos, the user must register with a host (called an instance). Each host has its own conditions of use (storage space per user, moderation rules, themes, etc.). Thanks to WebTorrent, if several people view the same video, fragments of it are exchanged between people so as not to overload the instance. Decentralized: Each instance can follow one or more other PeerTube instances in order to allow its users to view their videos. Federated: Via the ActivityPub protocol, Peertube can interact with other software that is part of the Fediverse, such as Mastodon for example. PeerTube is a decentralized and federated video hosting software. To publish videos, the user must register with a host (called an instance). Each host has its own conditions of use (storage space per user, moderation rules, themes, etc.). Thanks to WebTorrent, if several people view the same video, fragments of it are exchanged between people so as not to overload the instance. Decentralized: Each instance can follow one or more other PeerTube instances in order to allow its users to view their videos. Federated: Via the ActivityPub protocol, Peertube can interact with other software that is part of the Fediverse, such as Mastodon for example.
**Versión proporcionada:** 6.0.3~ynh1 **Versión proporcionada:** 6.0.4~ynh1
**Demo:** <http://peertube.cpy.re> **Demo:** <http://peertube.cpy.re>

50
README_zh_Hans.md Normal file
View file

@ -0,0 +1,50 @@
<!--
注意:此 README 由 <https://github.com/YunoHost/apps/tree/master/tools/readme_generator> 自动生成
请勿手动编辑。
-->
# YunoHost 的 PeerTube
[![集成程度](https://dash.yunohost.org/integration/peertube.svg)](https://dash.yunohost.org/appci/app/peertube) ![工作状态](https://ci-apps.yunohost.org/ci/badges/peertube.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/peertube.maintain.svg)
[![使用 YunoHost 安装 PeerTube](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=peertube)
*[阅读此 README 的其它语言版本。](./ALL_README.md)*
> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 PeerTube。*
> *如果您还没有 YunoHost请参阅[指南](https://yunohost.org/install)了解如何安装它。*
## 概况
PeerTube is a decentralized and federated video hosting software. To publish videos, the user must register with a host (called an instance). Each host has its own conditions of use (storage space per user, moderation rules, themes, etc.). Thanks to WebTorrent, if several people view the same video, fragments of it are exchanged between people so as not to overload the instance. Decentralized: Each instance can follow one or more other PeerTube instances in order to allow its users to view their videos. Federated: Via the ActivityPub protocol, Peertube can interact with other software that is part of the Fediverse, such as Mastodon for example.
**分发版本:** 6.0.4~ynh1
**演示:** <http://peertube.cpy.re>
## 截图
![PeerTube 的截图](./doc/screenshots/screenshot1.jpg)
## 文档与资源
- 官方应用网站: <https://joinpeertube.org/fr>
- 官方管理文档: <https://docs.joinpeertube.org>
- 上游应用代码库: <https://github.com/Chocobozzz/PeerTube>
- YunoHost 商店: <https://apps.yunohost.org/app/peertube>
- 报告 bug <https://github.com/YunoHost-Apps/peertube_ynh/issues>
## 开发者信息
请向 [`testing` 分支](https://github.com/YunoHost-Apps/peertube_ynh/tree/testing) 发送拉取请求。
如要尝试 `testing` 分支,请这样操作:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/peertube_ynh/tree/testing --debug
sudo yunohost app upgrade peertube -u https://github.com/YunoHost-Apps/peertube_ynh/tree/testing --debug
```
**有关应用打包的更多信息:** <https://yunohost.org/packaging_apps>

View file

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=PeerTube daemon Description=PeerTube: video streaming platform
After=network.target postgresql.service redis-server.service After=network.target postgresql.service redis-server.service
[Service] [Service]

View file

@ -5,7 +5,7 @@ name = "PeerTube"
description.en = "Federated video streaming platform using P2P directly in the web browser" description.en = "Federated video streaming platform using P2P directly in the web browser"
description.fr = "Plateforme fédéralisé de diffusion vidéo par P2P directement dans le navigateur" description.fr = "Plateforme fédéralisé de diffusion vidéo par P2P directement dans le navigateur"
version = "6.0.3~ynh1" version = "6.0.4~ynh1"
maintainers = ["yalh76"] maintainers = ["yalh76"]
@ -42,9 +42,10 @@ ram.runtime = "1G"
[resources] [resources]
[resources.sources.main] [resources.sources.main]
url = "https://github.com/Chocobozzz/PeerTube/releases/download/v6.0.3/peertube-v6.0.3.tar.xz" url = "https://github.com/Chocobozzz/PeerTube/releases/download/v6.0.4/peertube-v6.0.4.tar.xz"
sha256 = "9a88899a4777c340df41e763ecdf8656edf3ef75f54b4de9be05aa309697a211" sha256 = "efa2aba3837c9fc0ff2303f29b061efaa02988fe15414edc7211e02c58540e53"
autoupdate.strategy = "latest_github_tag" autoupdate.strategy = "latest_github_release"
autoupdate.asset = "^peertube-v.*\\.tar\\.xz$"
[resources.ports] [resources.ports]
main.default = 8095 main.default = 8095

View file

@ -4,7 +4,7 @@
# COMMON VARIABLES # COMMON VARIABLES
#================================================= #=================================================
nodejs_version=18 nodejs_version=20
# Obtain the (empty string), __2, __3, cf the DB suffix in production.yaml... # Obtain the (empty string), __2, __3, cf the DB suffix in production.yaml...
db_suffix="$(echo $app | sed 's/peertube//g')" db_suffix="$(echo $app | sed 's/peertube//g')"

View file

@ -36,7 +36,7 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#================================================= #=================================================
# CREATE A POSTGRESQL DATABASE # CREATE A POSTGRESQL DATABASE
#================================================= #=================================================
ynh_script_progression --message="Initializing postgresql modules..." ynh_script_progression --message="Initializing PostgreSQL modules..."
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS unaccent;" --database=$db_name ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS unaccent;" --database=$db_name
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pg_trgm;" --database=$db_name ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pg_trgm;" --database=$db_name
@ -76,6 +76,7 @@ ynh_add_nginx_config
ynh_add_systemd_config ynh_add_systemd_config
mkdir -p "/var/log/$app" mkdir -p "/var/log/$app"
touch "/var/log/$app/peertube.log"
chown -R $app:$app "/var/log/$app" chown -R $app:$app "/var/log/$app"
# Use logrotate to manage application logfile(s) # Use logrotate to manage application logfile(s)

View file

@ -56,6 +56,7 @@ ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service --quiet systemctl enable $app.service --quiet
mkdir -p "/var/log/$app" mkdir -p "/var/log/$app"
touch "/var/log/$app/peertube.log"
chown -R $app:$app "/var/log/$app" chown -R $app:$app "/var/log/$app"
ynh_restore_file --origin_path="/etc/logrotate.d/$app" ynh_restore_file --origin_path="/etc/logrotate.d/$app"

View file

@ -107,6 +107,7 @@ ynh_add_nginx_config
ynh_add_systemd_config ynh_add_systemd_config
mkdir -p "/var/log/$app" mkdir -p "/var/log/$app"
touch "/var/log/$app/peertube.log"
chown -R $app:$app "/var/log/$app" chown -R $app:$app "/var/log/$app"
# Use logrotate to manage app-specific logfile(s) # Use logrotate to manage app-specific logfile(s)