PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

Support alternative web videos CDN base url

Open RinCat opened this issue 1 year ago • 2 comments

Description

This patch introduces the ability to specify an alternate base URL for web video storage in "local", similar to the existing functionality for object storage base URLs. This allows high traffic videos to be distributed across multiple servers or CDNs, reducing the load/cost on the main site/CDN. This is also useful if your video storage and Peertube services are hosted on separate servers.

However, it's important to note one significant limitation: private and password-protected videos will not have secure protection. This is because the external server acts purely as a file host without any authentication mechanisms. Thus, anyone with knowledge of the URL can access these videos.

While I'm aware of these drawbacks and doubt the likelihood of this patch being merged, I'm sharing it here for those who may find it useful for their specific needs.

I used this in my peertube and here is a demo if anyone want to check.

Related issues

https://github.com/Chocobozzz/PeerTube/issues/5460

Has this been tested?

  • [ ] 👍 yes, I added tests to the test suite
  • [x] 💭 no, because this PR is a draft and still needs work
  • [ ] 🙅 no, because this PR does not update server code
  • [ ] 🙋 no, because I need help

RinCat avatar Nov 30 '23 03:11 RinCat

While I'm aware of these drawbacks and doubt the likelihood of this patch being merged, I'm sharing it here for those who may find it useful for their specific needs.

You can add a configuration key so it's the admin choice if PeerTube also replace URLs of private/internal/password protected videos.

Any news for this PR @RinCat?

Chocobozzz avatar Jan 12 '24 15:01 Chocobozzz

While I'm aware of these drawbacks and doubt the likelihood of this patch being merged, I'm sharing it here for those who may find it useful for their specific needs.

You can add a configuration key so it's the admin choice if PeerTube also replace URLs of private/internal/password protected videos.

Any news for this PR @RinCat?

That's a good idea, I will add that.

RinCat avatar Jan 16 '24 02:01 RinCat

Closing due to inactivity. Does not hesitate to ask for the reopening :)

Chocobozzz avatar Feb 23 '24 13:02 Chocobozzz