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

    elithrar

    03/09/2023, 1:12 AM
    Run through this first before pulling in other libraries: https://developers.cloudflare.com/r2/data-access/workers-api/workers-api-usage/
  • k

    kian

    03/09/2023, 1:16 AM
    I wonder if you can do Basic Auth with the WAF, on a custom bucket
  • k

    kian

    03/09/2023, 1:16 AM
    I wouldn't recommend it to anyone, but it'd be pretty fun.
  • k

    kian

    03/09/2023, 1:16 AM
    WAF + custom error responses to return a 401 if there is a missing Authorization header (or isn't valid) and then Transform Rules to add the
    WWW-Authenticate
    header under the same conditions
  • k

    kian

    03/09/2023, 1:16 AM
  • s

    silentdevnull

    03/09/2023, 1:30 AM
    Okay I will run through this over the weekend. Thank you
  • s

    silentdevnull

    03/09/2023, 1:51 AM
    Can you do basic auth with the waf?
  • k

    kian

    03/09/2023, 1:54 AM
    Can? Probably Ergonomically? Not so much
  • k

    kian

    03/09/2023, 1:54 AM
    If you're getting less than 100,000 requests a day, Workers is free and easier.
  • s

    silentdevnull

    03/09/2023, 2:03 AM
    Okay it would just be cool it it cool. Nice way for me to block some previews stuff. Yeah it only me doing the workers. I’m also on the $5 plan as I’m trying to do some DO stuff right now
  • k

    kian

    03/09/2023, 2:05 AM
    Was your plan to have multiple usernames & passwords for the Basic Auth or just a single one?
  • s

    silentdevnull

    03/09/2023, 2:16 AM
    Normally for stuff like that I just do one.
  • g

    giviz

    03/09/2023, 2:28 AM
    Still looking on my issue : "I have 2 domains in my account, domain.dev and domain.com and I’m adding both as custom domain on an R2 bucket. For .dev I had no issue, It works like a charm. But for .com, the status stays at “unknown” with an error 1014. I can see the R2 CNAME added on the domain DNS, and I tried to use that domain with several buckets and different subdomains string but all are locked in that non working state. What am I missing here ? Thanks !" I've tried with a third domain this morning, and it also worked fine. So it's just one of my domain that can't work as a custom domain (my main domain of course !).
  • s

    Sid | R2

    03/09/2023, 2:32 AM
    Did you email abusereply@cloudflare.com? Your “main” domain is on a blocklist like I told you, unfortunately only the abuse team will be able to help you out.
  • g

    giviz

    03/09/2023, 2:34 AM
    Sorry I though that you sentence about that it would have prevented me to add the domain as DNS in the first place was negating that possibility. I'll send them an email right now and keep you posted !
  • s

    Sid | R2

    03/09/2023, 2:36 AM
    Oh sorry if I wasn’t clear, emailing them is the way to go!
  • g

    giviz

    03/09/2023, 2:38 AM
    done 🙂
  • g

    giviz

    03/09/2023, 2:38 AM
    🤞
  • j

    Jacob | Pages

    03/09/2023, 3:07 AM
    How long do cursors last when listing with the Workers binding? Like could you list a page, store the cursor for 10 minutes, and then list the next page?
  • j

    Jacob | Pages

    03/09/2023, 3:07 AM
    Looking to list through a really large bucket and I may need to wait between pages
  • s

    stegod10

    03/09/2023, 10:21 AM
    Hi. How to connect a custom domain to r2 bucket programatically? How to create a public bucket programatically?
  • c

    chientrm

    03/09/2023, 10:21 AM
    it's in the r2 settings page if you look carefully 😐
  • s

    stegod10

    03/09/2023, 10:21 AM
    but my question is how to do it "programmatically"?
  • s

    stegod10

    03/09/2023, 10:22 AM
    I dont want to use dashboard. I want to do it through python code or go code etc.
  • c

    chientrm

    03/09/2023, 10:22 AM
    my bad.
  • s

    stegod10

    03/09/2023, 10:23 AM
    There is a lack of information about this in the documentation.
  • c

    chientrm

    03/09/2023, 10:24 AM
    you use the dns api.
  • c

    chientrm

    03/09/2023, 10:24 AM
    it's just a dns record
  • c

    chientrm

    03/09/2023, 10:25 AM
    try adding public url via dashboard then navigate to dns settings page.
  • h

    HardAtWork

    03/09/2023, 10:28 AM
    I think it needs to be whitelisted. But also, Custom Domains work without the public URL enabled, so I don’t think you can just CNAME to it
1...936937938...1050Latest