https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • z

    Zeblote

    02/23/2023, 2:39 PM
    your files will be in a single data center only
  • g

    gaurav_thakur

    02/23/2023, 2:40 PM
    So how are they claiming it to be globally distributed? Are they caching it behind the scene and storing the item in only a single data center?
  • g

    golyalpha

    02/23/2023, 2:47 PM
    idk if you already got a response, but mc by minio using the
    mc share upload
    command
  • e

    Erisa | Support Engineer

    02/23/2023, 2:48 PM
    Ooo, thanks šŸ™
  • z

    Zeblote

    02/23/2023, 2:48 PM
    sadly claiming things does not make them true
  • a

    andrew

    02/23/2023, 2:56 PM
    it's part of R2's aspirational featureset
  • s

    Spunkie

    02/23/2023, 3:03 PM
    Pretty sure I do? Not sure of a better way to move the video file from zooms cloud storage to R2?
  • h

    HardAtWork

    02/23/2023, 3:10 PM
    No, I mean, you only need Workers for the actual Zoom-to-R2 migration, not R2-to-client
  • s

    Spunkie

    02/23/2023, 3:13 PM
    yup šŸ‘, so the actual requests to the worker would be very few. Maybe only a few 100 requests per month. But isn't there some kind of bandwidth charge for the 1tb of video I would be moving across the worker?
  • g

    golyalpha

    02/23/2023, 3:26 PM
    btw, idk why, but when I use
    mc
    to upload a file to R2, the displayed bucket size is about (maybe a little over) twice the size of the actual file
  • e

    ettorebigm

    02/23/2023, 3:41 PM
    Thank you for kind answer i didn't see being mentioned. Is it normal practice to let only entropy protect data within the bucket and not calls to an authentication worker ? Data paths with 20 char strings and storing the url links in other db infrastructure
  • p

    Plotzes

    02/23/2023, 3:44 PM
    cloudflare doesn't do bandwidth fees šŸ˜„
  • h

    HardAtWork

    02/23/2023, 3:50 PM
    Nope
  • h

    HardAtWork

    02/23/2023, 3:51 PM
    I mean, when you get to the petabyte range…
  • p

    Plotzes

    02/23/2023, 3:51 PM
    yeah fair, enterprise has some different rules
  • p

    Plotzes

    02/23/2023, 3:51 PM
    xD
  • e

    erasmodanarni

    02/23/2023, 5:22 PM
    Hello! Could I use R2 to serve a static website generated with, for example, vitepress?
  • e

    erasmodanarni

    02/23/2023, 5:23 PM
    I see I can allow for domain public access, but how could I link let’s say an index.html to be served automatically?
  • e

    erasmodanarni

    02/23/2023, 5:25 PM
    I’m already using cloudflare pages, but it would be very convenient to just upload the build directory to a bucket and that’s it…
  • c

    Chaika

    02/23/2023, 5:26 PM
    You could use a Transform Rule URL Rewrite for that, and rewrite requests to / to /index.html. Unless you have a strong reason to use R2 (i.e you have files over 25MB or a disproportionate amount of non-html content), you would be better off sticking with Pages. You can use Direct Upload, if you don't want Pages CI/are running your own
  • e

    erasmodanarni

    02/23/2023, 5:29 PM
    Thank you for your suggestion about direct upload. I’ll check it out. With regard to create a Transform Rule, where will I find it?
  • h

    HardAtWork

    02/23/2023, 5:31 PM
    https://dash.cloudflare.com/?to/:account/:zone/rules/transform-rules/rewrite-url/new
  • e

    erasmodanarni

    02/23/2023, 5:31 PM
    On a related note, if you don’t mind, why do you recommend for a general case of serving a static site, using pages over R2?
  • c

    Chaika

    02/23/2023, 5:31 PM
    You can find Transform Rules under your website/zone in the Cloudflare dash, then Rules -> Transform Rules -> Rewrite URL. Then, "Create Rule". Here's a magic link to go straight to creating a new one: Your rule should look something like this:
  • e

    erasmodanarni

    02/23/2023, 5:32 PM
    Thank you
  • e

    erasmodanarni

    02/23/2023, 5:32 PM
    Thank you
  • h

    HardAtWork

    02/23/2023, 5:32 PM
    Pages is built for static site hosting. It contains conveniences such as automatic
    /
    to
    index.html
    re-routing, 404 handling, Header & Redirect Rules, and the best part is, if your site is entirely static, Pages is 100% free to use.
  • c

    Chaika

    02/23/2023, 5:34 PM
    Pages uses KV for its storage, which has two origins/central stores, revalidates in the background, etc, should just be faster. As well as preview links for each deployment, the ability to roll back, etc, like he said, it's just built for static site hosting (with the ability for dynamic stuff via Functions, which run on Workers), where R2 is more generic storage
  • e

    erasmodanarni

    02/23/2023, 5:35 PM
    Thank you all for these very helpful advices. This looks a great community! 😊
  • j

    Jon @ Transistor

    02/23/2023, 8:45 PM
    Has anyone built/found a tool to migrate a Backblaze B2 bucket to R2 without pulling the files through and intermediary server like EC2? Unfortunately we're stuck with an older non-S3 compatible B2 bucket so we can't use Cloudflare's S3 migration tool.
1...909910911...1050Latest