Cloudflare R2 and Backblaze is not working with Peertube. How to fix?

I also opened an issue on Github: Cloudflare R2 is not working with Peertube. · Issue #6749 · Chocobozzz/PeerTube

Has anyone tried using Cloudflare R2 as block storage? As I understand, it is not recommended to use block storage for direct serving of video instead there should be CDN cache which is the next thing I have to figure out.

But for now I cant even get R2 to work propely with my instance fusstube.com .

Details are in Github issue.

EDIT: just changed to Blackblaze, and same issue after setting to allow CORS from https://fusstube.com!

Console reports this error:

« Access to XMLHttpRequest at ‹ https://fusstube.s3.eu-central-003.backblazeb2.com/streaming-playlists:hls/6a622c8c-4c9b-4cf0-a46c-6f172c1389e4/3ad3f870-e141-4df4-9758-87c0890ac880-master.m3u8 › from origin ‹ https://fusstube.com › has been blocked by CORS policy: No ‹ Access-Control-Allow-Origin › header is present on the requested resource. »

Is my setup correct?

Hi,

Please paste an URL of a broken video

Just for the record, if you want your videos to be viewable from remote instances (Peertube is federated!) you must allow any origin, not just only your instance.

No. As I explained, this is not enough, this would not work with Peertube federation.

Was your response written by an AI?? @afcika said he already setup those CORS headers.