@@ -8,19 +8,26 @@ If you do not kwow what is peertube, see https://purr.rigelk.eu/lang/en/docs/get
Playbook
--------
The `peertube` role installs all required packages and further downloads and install Peertube on a Debian server (>= Stretch).
This is just an automation of the official documentation to install Peertube on Debian. https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/production.md (up to [here](https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/production.md#peertube-configuration) )
This is just an automation of the official documentation to install Peertube on Debian that you can found at: https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/production.md
The playbook will set up a minimal configuration for Peertube and Nginx in the scenario of being behind a reverse proxy (=> **no HTTPS** is done on the host).
Whenever needed, passwords are generated dynamically and stored in ~/%s.credentials.txt so that Ansible reuse them on next run (idempotent).
Requirements
------------
OS: Debian Stretch (tested successfully in LXC container)
Read **carefully** the output of the play as well as the official documentation to finish configuring your instance once Peertube is installed.
Read **carefully** the output of the play as well as the official documentation. Review the resulting configuration files in `/var/www/peertube/config/production.yaml`.
PeerTube **does not support webserver host change**. Keep in mind your domain name is definitive after your first PeerTube start.
Role Variables
--------------
-**app_user**: user for running the peertube instance. Set to `peertube` as per documentation.
-**app_domain**: the FQDN for your resulting Peertube instance.
size: 100 # Max number of previews you want to cache
admin:
email: 'admin@example.com'
signup:
enabled: false
limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
filters:
cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist
whitelist: []
blacklist: []
user:
# Default value of maximum video BYTES the user can upload (does not take into account transcoded files).
# -1 == unlimited
video_quota: -1
# If enabled, the video will be transcoded to mp4 (x264) with "faststart" flag
# In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions.
# Please, do not disable transcoding since many uploaded videos will not work
transcoding:
enabled: true
threads: 1
resolutions: # Only created if the original video has a higher resolution, uses more storage!
240p: false
360p: false
480p: false
720p: false
1080p: false
# Instance settings
instance:
name: 'PeerTube'
short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.'
description: '' # Support markdown
terms: '' # Support markdown
default_client_route: '/videos/trending'
# By default, "do_not_list" or "blur" or "display" NSFW videos
# Could be overridden per user with a setting
default_nsfw_policy: 'do_not_list'
customizations:
javascript: '' # Directly your JavaScript code (without <script>tags).Willbeevalatruntime