Logo       PBase-Foundation

PeerTube

Install the PeerTube federated video hosting and sharing platform. It requires a PostgreSQL database backend. If your host is registered in DNS the installer will use Let's Encrypt to setup HTTPS.

After running the preconfig package be sure to modify the configuration files it adds in the /usr/local/pbase-data/admin-only/module-config.d/ directory.

Specifically, the pbase_lets_encrypt.json must be changed to hold your site administrator's email address. And the pbase_smtp.json file must be changed to hold your outgoing SMTP email server information.

yum -y install https://pbase-foundation.com/pbase-preconfig.rpm
yum -y install pbase-preconfig-postgres-peertube
yum -y install pbase-postgres
yum -y install pbase-peertube

(Compatibility: EL8/CentOS 8 only)

Extras

You should secure your server with pbase-firewall-enable, sync your clocks with pbase-ntp-timesync for ActivityPub if your server doesn't already have NTP, and lock down SSH access with the pbase-fail2ban package.

yum -y install pbase-fail2ban
yum -y install pbase-ntp-timesync
yum -y install pbase-firewall-enable

Configuration Options

The pbase-preconfig-postgres-peertube package places default option files under the /usr/local/pbase-data/admin-only/module-config.d/ directory.
This is the Let's Encrypt configuration options file. Be sure to set the emailAddress.

{
"pbase_lets_encrypt" : {
"enableAutoRenew": true,
"executeCertbotCmd": true,
"additionalSubDomain": "",
"emailAddress": "yoursysadmin@yourrealmail.com"
}
}

This is the SMTP configuration options file. The defaults are typical for a Mailgun client. Be sure to set the password field with the correct value.

{
"pbase_smtp" : {
"server": "smtp.mailgun.org",
"port": 587,
"login": "postmaster@mail.virtualrecordlabel.net",
"password": "mysmtppassword",
"authMethod": "plain",
"openSSLVerifyMode": "none"
}
}