Peertube and S3/Minio Objectstorage
-
@jdaviescoates playback may require the bucket to be https accessible, which is a setting.
-
@robi said in Peertube and S3/Minio Objectstorage:
@jdaviescoates playback may require the bucket to be https accessible, which is a setting.
You mean making the bucket public? Already is. Can't find any other settings related to https.
-
@jdaviescoates I wonder if the problem is the TYPE of bucket. In the comments above I was running a self-installed instance of Minio. That is, I didn't use Yunohost, or CapRover, or Cloudron, etc. I installed it by hand. Somehow (I guess I could figure it out by rereading the above) I set Minio up to use virtual-host, rather than path-style. And for whatever reason, Peertube (only) works with virtual-host style. Maybe this has something to do with it?
FWIW (I'm only getting my own head sort of around all this), the end_point in teh config has to be whatever your API enpoint is. Off the top of my head, I forget how to tell which is which, but one address is the home adress, and the other is the end point address. That is to say, when it is being installed on mino.example.com, a second API address is created, something like minio-s3.example.com. The API is the address needed.
-
@scooke said in Peertube and S3/Minio Objectstorage:
Maybe this has something to do with it?
That's why Contabo didn't work, I think.
But Scaleway does support that and did work in that the files get transferred to the bucket fine. It's just that then playback basically doesn't work at all.
-
@jdaviescoates Care to share your config (the pertinent part)?
-
# Store all videos in one bucket on Scaleway object_storage: enabled: true # Scaleway endpoint endpoint: 's3.fr-par.scw.cloud' region: 'fr-par' videos: bucket_name: 'bridport-tv' prefix: 'videos/' # Use the same bucket as for webtorrent videos but with a different prefix streaming_playlists: bucket_name: 'bridport-tv' prefix: 'streaming-playlists/' credentials: access_key_id: 'xxxxx' secret_access_key: 'xxxxx'
That's was working fine for getting stuff into the bucket, but then videos didn't actually play
Bucket is also public:
-
@jdaviescoates if you get a public link, does it play in the browser?
compare that to the link the app tries to use?
-
@robi said in Peertube and S3/Minio Objectstorage:
@jdaviescoates if you get a public link, does it play in the browser?
Yes
-
@robi said in Peertube and S3/Minio Objectstorage:
compare that to the link the app tries to use?
Looking for that I spotted this:
CORS Missing Allowed Origin
I guess that's likely the problem...
(man, it's SO much easier doing this stuff when I'm not both freezing cold and way too tired! /me reminds himself, again, to get more f-ing sleep and go to bed on f-ing time!)
-
Woohoo!
So, after following this guide:
https://www.scaleway.com/en/docs/storage/object/api-cli/object-storage-aws-cli/
And then this guide:
https://www.scaleway.com/en/docs/storage/object/api-cli/setting-cors-rules/
I now have videos stored on S3 that ALSO play!
-
Scaleway are great. Good prices, great docs!
I was tempted by special offer Contabo pricing, but unlike Scaleway they aren't 100% renewably powered (although their German based stuff when I'd bought some object storage is), and their docs are crap.
So looks like I'll just ditch Contabo and stick with using Scaleway for my Object Storage needs.
-
anyone done this on Linode?
-
@scooke Thanks for asking this question. I might try this using block storage with Wasabi and PeerTube.
Why is object storage suitable for this task? Isn't object storage better for keeping gigantic files? I suppose a considerable archive of videos would end up needing a large amount of storage, but they would all be separate files.
-
@LoudLemur said in Peertube and S3/Minio Objectstorage:
Why is object storage suitable for this task? Isn't object storage better for keeping gigantic files?
Video files are relatively large files.
But aside from that, often VPS servers don't come with much disk space and so Object Storage is just one relatively cheap way of increasing the amount of storage you have.
@LoudLemur said in Peertube and S3/Minio Objectstorage:
Wasabi
Lots of people on here seem to have moved away from them for various reasons.
The cheapest out there seems to be iDrive e2 who have a 90% off offer which makes it insanely cheap for the first year (and pretty good value after that):
Personally I use Scaleway who are also good value and 100% powered by renewable energy
I've got all my instances of Peertube, Mastodon, and Pixelfed all storing their data on Scaleway Object Storage.
-
@jdaviescoates You are so good to me!
Thank you. I shall look into those. -
I'm wondering if there is a path to do this with Peertube + Hetzner storage box or if the S3 Storage objects way is the only way to store peertube video content outside the cloudron, anyone tried ?
edit : Hmm apparently, the answer is no, only S3 is supported : https://docs.joinpeertube.org/maintain/remote-storage#migrate-to-another-object-storage-provider
-
@benborges said in Peertube and S3/Minio Objectstorage:
I'm wondering if there is a path to do this with Peertube + Hetzner storage box or if the S3 Storage objects way is the only way to store peertube video content outside the cloudron, anyone tried ?
You might be able to mount a Volume and then use that for the data directory?
-
@jdaviescoates Tried that but I have this error then :
it does the same for CIFS volumes
-
@benborges yeah, as it states in the data directory docs:
cifs and sshfs volumes are unsuitable as an app's data directory as they do not support file permissions and ownership. mountpoint and nfs volumes may or may not work depending on the destination filesystem.