https://discord.cloudflare.com logo
Join DiscordCommunities
Powered by
# r2
  • c

    cohan

    03/23/2023, 1:31 PM
    Do you mean a WAF rule? I might be in the wrong place. If it is WAF though I get an error when I save log rules
  • e

    Erisa | Support Engineer

    03/23/2023, 1:33 PM
    That a Custom rule?
  • e

    Erisa | Support Engineer

    03/23/2023, 1:33 PM
    The confusion here likely has to do with the fact that Firewall Rules recently is in the process of migrating to Custom Rules, which has no Allow action:
  • e

    Erisa | Support Engineer

    03/23/2023, 1:33 PM
    and the Log action requires a paid plan (no idea why it shows up in UI at all)
  • c

    cohan

    03/23/2023, 1:34 PM
    Aye every reference seems to be to needing Enterprise. No worries. I'll either write my own worker or switch back to Bunny for file storage
  • c

    cohan

    03/23/2023, 1:34 PM
    until I can afford enterprise ofc haha
  • e

    Erisa | Support Engineer

    03/23/2023, 1:34 PM
    The Log action doesn't need Enterprise! Just any paid plan, the $25/mo one will do
  • c

    cohan

    03/23/2023, 1:35 PM
    can you link to the docs on that one? I'm definitely in the wrong place then
  • e

    Erisa | Support Engineer

    03/23/2023, 1:35 PM
    Checking something first, one sec
  • c

    cohan

    03/23/2023, 1:35 PM
    no worries, no rush on it. Rest of the code needs writing before it's an issue haha
  • e

    Erisa | Support Engineer

    03/23/2023, 1:37 PM
    So it looks like custom rules is new enough that there isnt any documentation on what plan has what features
  • e

    Erisa | Support Engineer

    03/23/2023, 1:37 PM
    which is helpful!
  • e

    Erisa | Support Engineer

    03/23/2023, 1:38 PM
    It looks like I was wrong about this, because they changed it
  • e

    Erisa | Support Engineer

    03/23/2023, 1:38 PM
    From trial and error it does indeed appear to require Enterprise plan, which seems like an odd requirement
  • e

    Erisa | Support Engineer

    03/23/2023, 1:39 PM
    So sorry for the mistake there
  • e

    Erisa | Support Engineer

    03/23/2023, 1:39 PM
    If you wanted to do a funny workaround you could do something like this
  • c

    cohan

    03/23/2023, 1:40 PM
    Not a problem, I'll figure something out 🙂
  • e

    Erisa | Support Engineer

    03/23/2023, 1:42 PM
    Also - if you're fronting requests with a Worker, you can use Workers Logpush (included with Workers Paid @ $5/mo) to send logs (including any
    console.log
    that you run) to R2 or another external provider
  • c

    cohan

    03/23/2023, 1:51 PM
    I'll have a look into that (hopefully I don't bump into logpush the service again, that's where I was getting stuck before asking here haha) -- worst case I'll use something like this example plus an r2 fetch, firing
    postLog()
    on all requests rather than just errors https://developers.cloudflare.com/workers/examples/debugging-logs/
  • p

    Plotzes

    03/23/2023, 4:38 PM
    this is nice, maybe worth telling people? https://twitter.com/CloudflareDev/status/1638911028477173762
  • i

    imKK

    03/23/2023, 5:36 PM
    Hi ! Everyone Need some help here I want to know that how can I upload a media ( image or video ) file using the @aws-sdk/client-s3 in NodeJS and get the uploaded media url back from r2 so that I can store it in my database. something like this 👇🏻 uploadMediaToR2() ➡️ getTheReturnedMediaURL() ➡️ storeToDB() More on what I am trying to build I am trying to make a website similar to https://www.pexels.com/, mine one is just niche focused As I am complete beginner to this cloud technologies and R2, need some extra suggestion in order to improve
  • s

    Skye

    03/23/2023, 5:44 PM
    It was announced here a couple of weeks ago, it's just new in the dashboard
  • p

    Plotzes

    03/23/2023, 5:49 PM
    ah then I just wasn't paying attention 👍
  • p

    PowerOfM

    03/23/2023, 7:21 PM
    Hey everyone! Just joined to ask if anyone has resources about developing with R2 and local cf workers? I'm using Wrangler in "local" mode and it keeps thinking my r2 bucket is empty. It works fine in "remote" mode, and all the wrangler commands to manage r2 seem to be only for remote buckets. I found this https://github.com/cloudflare/workers-sdk/issues/1066 from a while ago, but no other news. Miniflare seems to have stuff about persisting R2 to a local folder, but wrangler appears to ignore that part in the .toml, and miniflare on its own doesn't have the build tools that wrangler is bundled with. Any pointers would be appreciated!
  • h

    HardAtWork

    03/23/2023, 7:25 PM
    Have you tried
    —persist
    ?
  • s

    Skye

    03/23/2023, 7:25 PM
    Looks like apple messed up the dashes there, should be
    --persist
  • p

    PowerOfM

    03/23/2023, 7:27 PM
    I've used
    --persist
    in the
    wrangler dev
    command. The
    wrangler r2 object put
    cli doesn't seem to accept
    --persist
    or
    --local
  • p

    PowerOfM

    03/23/2023, 7:27 PM
    My hope was to seed the bucket with data before running the worker
  • h

    HardAtWork

    03/23/2023, 7:37 PM
    Oh yeah, that only works on remote.
  • t

    Towy

    03/23/2023, 9:20 PM
    Hey, I can't get Client IP Address Filtering to work, I can connect fine without it, but as soon as I add my ip/32, my server can't connect.
1...958959960...1050Latest