- https://github.com/Chocobozzz/PeerTube/issues/1079#issuecomment-872256813
- curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
- ai unzip postgresql nginx gnupg2 ffmpeg redis nodejs
- npm install -g yarn
- node -v; yarn -v
- https://docs.joinpeertube.org/install/any-os#installation
- sudo -u peertube npm install --production --force
- rm /etc/nginx/sites-enabled/default
- sc-start peertube
- autopostgresqlbackup
- sudo -u peertube pg_dump -Fc peertube_prod > /tmp/peertube_prod-dump.db
- sudo -u postgres pg_restore -c -C -d postgres /tmp/peertube_prod-dump.db
- cd /var/www/peertube/peertube-latest/scripts && sudo -H -u peertube ./upgrade.sh
- journalctl -fu peertube
/var/www/peertube/config/production.yaml
trust_proxy:
- 10.0.3.0/24
- 'loopback'
smtp:
port: 25 # If you use StartTLS: 587
from_address: 'peertube@bubuit.net'
secrets:
# Generate one using `openssl rand -hex 32`
peertube: 'NUMBER'
Package: nodejs
Pin: origin deb.nodesource.com
Pin: version 22.5.*
Pin-Priority: 600