Travailler avec PeerTube

Updated 24 Juillet 2019

Switching to another domain

To migrate from peertube.example.org to tube.example.org, edit the PeerTube settings accordingly:

/var/calculate/www/peertube/config/production.yaml

webserver:
  https: true
  hostname: 'tube.example.org'

Convert the database of torrent files:

su - peertube

cd peertube-latest

NODE_CONFIG_DIR=/var/calculate/www/peertube/config NODE_ENV=production npm run update-host

Mettez à jour la configuration de nginx :

/etc/nginx/sites-enabled/peertube.conf

server {
...
server_name tube.example.org;

ssl_certificate /etc/letsencrypt/live/tube.example.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/tube.example.org/privkey.pem;
}

Now fetch the necessary certificates for tube.example.org.

Restart both Nginx and PeerTube:

/etc/init.d/nginx restart

/etc/init.d/peertube restart