The configuration for peertube.rare
Find a file
2019-11-05 17:09:01 +01:00
templates Update nginx config, add websocket location routing 2019-09-16 13:02:10 +02:00
.gitignore Use example file for inventory, instead of committing own file 2019-04-19 14:37:26 +02:00
ansible.cfg Convert project to ansible 2019-04-12 11:08:53 +02:00
inventory.example Use variable for letsencrypt contact email 2019-06-14 18:49:59 +02:00
LICENSE Add AGPL license 2019-05-15 12:00:52 +00:00
migration.sh Add comment to migration.sh 2019-05-15 14:03:49 +02:00
peertube-centos.yml Remove trailing whitespace from peertube-centos.yml 2019-11-05 17:08:25 +01:00
peertube-ubuntu.yml Rename peertube.yml to peertube-ubuntu.yml 2019-11-05 17:09:01 +01:00
README.md Update readme 2019-07-15 20:54:44 +02:00

Peertube setup with Ansible and Docker-Compose

This repo lets you easily setup a Peertube server based on docker-compose.

There is also a migration script to migrate from the default Peertube setup to this setup. Use it at your own risk, and make sure to test and backup before doing this migration.

This project is based on the Peertube docker-compose example.

You can contact me on the Fediverse about this project: @felix@radical.town.

Features

  • easy, automatic setup
  • integrated Let's Encrypt certificate handling
  • file caching with nginx (to limit backend access and Peertube CPU usage)
  • email sending works out of the box

Setup

Clone the repo onto your local machine.

Copy inventory.example to inventory, and configure the hosts you want to work with.

Install Python and Ansible on your local machine:

apt install python2-pip
pip2 install ansible

Run the playbook:

ansible-playbook --become peertube.yml

The first time you run it, Ansible will output the root password.

Note: If you use this for an existing Peertube instance, make sure the file passwords/*your-server*/postgres exists and contains the correct password. Otherwise Ansible will change the password in Peertube, and it won't be able to connect to the database.