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

104 lines
5.1 KiB
Markdown
Raw Normal View History

2017-12-08 00:35:52 +01:00
# PeerTube app for YunoHost
2018-03-23 20:23:12 +01:00
2019-04-03 00:42:22 +02:00
[![Integration level](https://dash.yunohost.org/integration/peertube.svg)](https://dash.yunohost.org/appci/app/peertube)
2019-06-03 21:25:07 +02:00
[![Install PeerTube with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=peertube)
2018-05-08 00:50:15 +02:00
2019-04-03 00:42:22 +02:00
## Overview
2017-12-08 00:35:52 +01:00
2019-06-03 21:25:07 +02:00
### What is PeerTube ?
2018-06-27 13:21:09 +02:00
PeerTube is a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser, using <a href="https://github.com/feross/webtorrent">WebTorrent</a>.
2019-06-03 21:25:07 +02:00
### Why PeerTube ?
2018-06-27 13:21:09 +02:00
We can't build a FOSS video streaming alternatives to YouTube, Dailymotion, Vimeo... with a centralized software. One organization alone cannot have enough money to pay bandwidth and video storage of its server.
So we need to have a decentralized network of servers seeding videos (as [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))).
But it's not enough because one video could become famous and overload the server.
It's the reason why we need to use a P2P protocol to limit the server load.
Thanks to [WebTorrent](https://github.com/feross/webtorrent), we can make P2P (thus BitTorrent) inside the web browser, as of today.
2019-04-03 00:42:22 +02:00
### Why is that cool ?
2018-06-27 13:21:09 +02:00
Servers are run independently by different people and organizations. They can apply wildly different moderation policies, so you can find or make one that fits your taste perfectly.
By watching a video, you help the hosting provider to broadcast it by becoming a broadcaster of the video yourself. Each instance doesnt need much money to broadcast the videos of its users.
2019-06-17 21:08:10 +02:00
**Shipped version:** 1.3.1
2019-04-03 00:42:22 +02:00
2019-04-04 01:45:28 +02:00
## Screenshots
![](https://framablog.org/wp-content/uploads/2018/03/Framatube-au-lancement.png)
2019-04-03 00:42:22 +02:00
## Demo
2018-03-23 20:23:12 +01:00
Want to see in action?
* [Here](http://peertube.cpy.re) are the list of instances ran by people around the world. Be a part of it.
2018-03-23 20:23:12 +01:00
## Installation
2018-03-23 20:23:12 +01:00
### Guidelines
2018-09-21 18:14:49 +02:00
1. Require **dedicated domain** like **peertube.domain.tld**.
2019-06-03 21:25:07 +02:00
1. **No LDAP** support (blocked until PeerTube core upstream implements it)
2018-09-21 18:14:49 +02:00
1. URL can not be changed once selected. Choose the domain wisely.
2018-06-27 13:21:09 +02:00
1. You need more then **1GB** of ram. If you don't have it, please create a **swap memory**.
$ dd if=/dev/zero of=/swapfile bs=1024 count=1048576
$ mkswap /swapfile
$ swapon /swapfile
$ echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
2019-06-03 21:25:07 +02:00
1. This app is **multi-instance** (you can have more then one PeerTube instance running on a YunoHost server)
2019-06-23 16:07:16 +02:00
1. **If you are hosted on OVH virtual machine or experiencing `gyp ERR! configure error`, please switch to [ovh_fix](https://github.com/YunoHost-Apps/peertube_ynh/tree_ovh)**
2019-06-06 21:03:08 +02:00
2018-09-21 18:14:49 +02:00
### Installing guide
2019-06-06 21:03:08 +02:00
1. App can be installed by **running following commands**:
2019-06-23 16:07:16 +02:00
$ sudo yunohost app install https://github.com/YunoHost-Apps/peertube_ynh
2018-09-21 18:14:49 +02:00
1. Admin username is : **root**.
1. **Admin password** will be sent to the email address given at the time of the installation.
2019-02-03 13:51:40 +01:00
1. **TLS** and **starttls** are disabled for the outgoing mails. If you intent to use email address not hosted on your local server,it's advised to have a proper SMTP configured with tls and starttls settings by editing **/var/www/peertube/config/production.yml**.
2018-09-21 18:14:49 +02:00
### Update Guide
2019-06-06 21:03:08 +02:00
1. App can be updated with the **following commands**:
2019-06-23 16:07:16 +02:00
$ sudo yunohost app upgrade peertube -u https://github.com/YunoHost-Apps/peertube_ynh
### Dependencies
* NodeJS, PostgreSQL.
* On Debian Jessie,backport is added for the ffmpeg package.
2019-04-03 00:42:22 +02:00
## Documentation
* Official documentation: https://docs.joinpeertube.org/
## YunoHost specific features
#### Supported architectures
2019-06-03 21:22:30 +02:00
* x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/peertube%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/peertube/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/peertube%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/peertube/)
* Jessie x86-64b - [![Build Status](https://ci-stretch.nohost.me/ci/logs/peertube%20%28Apps%29.svg)](https://ci-stretch.nohost.me/ci/apps/peertube/)
2019-04-03 00:42:22 +02:00
## Links
* Report a bug: https://github.com/YunoHost-Apps/peertube_ynh/issues
* App website: https://joinpeertube.org/fr/
* GitHub App website: https://github.com/Chocobozzz/PeerTube/
* YunoHost website: https://yunohost.org/
---
Developers info
----------------
**Only if you want to use a testing branch for coding, instead of merging directly into master.**
Please do your pull request to the [testing branch](https://github.com/YunoHost-Apps/peertube_ynh/tree/testing).
2019-04-03 00:42:22 +02:00
To try the testing branch, please proceed like that.
```
sudo yunohost app install https://github.com/YunoHost-Apps/peertube_ynh/tree/testing --debug
or
sudo yunohost app upgrade peertube -u https://github.com/YunoHost-Apps/peertube_ynh/tree/testing --debug
```