Looking for help creating an instance

Hi all I have been spending a week with reading the documentation but have a few questions before creating an instance. If anyone can point me in the right direction on how to go about these questions that would be a big help.

Before I start, yes I know things about Linux, I would call myself under the immediate level when it comes to the process. I am running an Unraid server for NAS items and have an Ubuntu box to host a test bench version of ArchivesSpace. Since this installation is going to be slightly out of the box and that I am not 100% sure what the correct terms are it is making this scenario hard to search for. Any help would be great.

What I am trying to do: create an instance of PeerTube so that I can embed videos to my website. (https://www.theunofficialconventionarchive.com), currently I am using both the Internet Archive and LBRY for this purpose, however due to some recent information about LBRY I am looking for a more concrete option. My idea was to take my old computer, throw Linux on it, have it dedicated to peertube and ngnix, and tada problem solved. However while I am planning this I am coming across a few concerns.

  1. I have almost 1900 videos spanning about 13 TB that I need to house, this is not including future development of creating these videos. My idea was to let PeerTube to look at the server, get the file locally, and then be able to serve it up on the instance. From all the documentation this does not appear to be an option. So the first question would be if anyone who has worked with PeerTube was able to basically use a NAS for storage and have the videos working on the instance, and if so point me in the direction to figure it out.

  2. If I need to store it locally on the instance, fine. I will need to get a massive drive to store it on the instance. Currently have an M.2 and a small SSD in the machine. In the windows world I would map a drive just for the files and install the OS and I am off to the races. In reading the instructions it does not appear I can do that. Am I missing something obvious that would allow me to do this?

  3. I would like to be forward thinking and be able to eventually move this instance to another location if grants were awarded. Meaning I would like the root and boot to be on the M.2, the application on the SSD, and the Data on a large HDD. Is there a way I can set this up, or a tool I can use to tell Linux where things go and have it play nice with one another?

  4. Since I am dealing with videos I know I am going to be trans-coding a TON (this is why I could not go with Linode for this, $1000/month minimum is way too much for my budget right now) I know that PeerTube does allow transcoding once you upload a file to the instance however I have been unable to figure out how it does it. I can throw a NVIDIA card in there and have the Cuda to help speed the process but it appears it is just CPU bounded. Does anyone have the information on the process that PeerTube is using so that I can understand a bit more.

  5. If I were to simply apply handbrake or ffmpeg to these videos anyone know the render formats to make them appear in the correct formats?

Sorry for the lengthy post hoping to get started with this project in the new year and want to make sure all my ducks are in a row before creating Frankenstein’s monster. Any help or tips or places I need to go to learn more would be grateful. Thank you for taking the time to read this I hope you have a great day.

Hello,

You could install an object storage server on your NAS so your peertube instance can use it, or just create a remote mount point but that’s not ideal in term of performance.

I’m sorry I don’t understand

Just create a mount point everywhere on your filesystem, and tell peertube to use these directories.

By default peertube use ffmpeg with a CPU encoder. PeerTube transcoding plugins that use GPU may exist.

I’m sorry I don’t understand

Hello there sorry for the delay combined with the end of year work and the holidays I was away from the computer. First off thank you for your help @Chocobozzz I was able to locate the information needed to make sure that the content lived outside of the default location so that I could scale up and down with this project.

I am still having issues with the installation and a bit lost. Right now I got the domain name all squared away, duck dns address pointing to my box with port forwarding telling it where to do. If I go to the address I am able to confirm that I am hitting the machine. There is only one problem, when viewing the page where I could go and sign in I get the default nginx page saying that it is working properly and not the landing page for peertube.

Does anyone happen to know if I might have missed a step? I mainly went ahead and set up the unbuntu box using the Any OS guide and this video as something to help guide me.

Any help will be great, once I get the instance up and running it is off to the races with the community archive.

Update1: Found my first dumb mistake. I accidentally copied the configuration with the .example at the end so nginx did not see anything to point to. Now restarting the service, going to give it some time and crossing my fingers to hope it does its thing.

Update2: Config is now working, however site is still not loading checking the journalctl for peertube and noticing I am getting a fatal code 28P01 error. Google tells that that is postgres based where the password is incorrect. I checked the config file again and it is matching, just to be on the safe side went into psql and altered the password for the user to make sure it is matching. Started the service back up again…same error. Anyone have any ideas?