https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • g

    Greg Brimble | Cloudflare Pages

    01/20/2021, 6:30 PM
    I made this at the weekend, in case it's any use! https://github.com/glenstack/glenstack/tree/master/packages/cf-workers-discord-bot
  • k

    kristian

    01/20/2021, 7:06 PM
    Stoked for this ๐Ÿ”ฅ https://twitter.com/colbyfayock/status/1351966759214055438
  • u

    ๐“•๐“ฒ๐“ฎ๐“ท๐“ญ / ๐“ฃ๐“ฑ๐“ฎ ๐“ก๐“ช๐”€

    01/20/2021, 11:51 PM
    can anyone tell how > Worker requests that exceed the daily limit of 100,000 requests per day or 1,000 requests per 10 minutes will return errors. works? so what happens if some guy sets up a multi-proxy attack? and decides to attack you?
  • a

    albert-zhao

    01/20/2021, 11:52 PM
    All requests go through the WAF first, so usually attacks aren't counted and the IPs get rate-limited
  • u

    ๐“•๐“ฒ๐“ฎ๐“ท๐“ญ / ๐“ฃ๐“ฑ๐“ฎ ๐“ก๐“ช๐”€

    01/20/2021, 11:53 PM
    multi proxy idea is to normally make request look like a human so there's not much rate-limite can do
  • a

    adaptive

    01/20/2021, 11:53 PM
    You have to choose between Fail open or Fail closed https://developers.cloudflare.com/workers/platform/limits#daily-request
  • a

    albert-zhao

    01/21/2021, 12:03 AM
    Ah, I should mention we mitigate L7 attacks with captcha challenges, blocking, etc. However, I'm sure you can get a more informed answer if you ask in the Cloudflare Community page: community.cloudflare.com
  • u

    ๐“•๐“ฒ๐“ฎ๐“ท๐“ญ / ๐“ฃ๐“ฑ๐“ฎ ๐“ก๐“ช๐”€

    01/21/2021, 12:27 AM
    never reached 100,000 i was kind of worried about
    1,000 requests per 10 minutes
    this 1k req limit is for all the workers you have on account or x each worker 1k x 10min limit?
  • i

    itsmatteomanf

    01/21/2021, 12:28 AM
    All workers in an account. All those limits of the free version are for the whole account.
  • u

    ๐“•๐“ฒ๐“ฎ๐“ท๐“ญ / ๐“ฃ๐“ฑ๐“ฎ ๐“ก๐“ช๐”€

    01/21/2021, 12:28 AM
    thank you
  • n

    Nascode

    01/21/2021, 6:01 AM
    Hi, can i ask a question about KV? For those who have used KV already. If i do a write on it, then read it at once in same client. Did i got new data or old data?
  • a

    albert-zhao

    01/21/2021, 6:05 AM
    Hello! You (and your users) will probably get old data because it takes 60 seconds for values to update across the network. KV is best for frequent reads and infrequent writes
  • n

    Nascode

    01/21/2021, 6:06 AM
    I see, thanks for clarifying @User !
  • n

    Nascode

    01/21/2021, 6:11 AM
    looks like durable object will be better fit to have a frequent write database in the future. pages+workers+durable object seems like awesome combination.
  • r

    Rodney

    01/21/2021, 6:17 AM
    Hi experts, I have a problem I suspect others have experienced and resolved in multiple other scenarios. Basically when we're fetching content, via fetch(), from a downstream source to relay in a new domain context, we're experiencing url domain mismatches - i.e. '302 Location' point to downstream source domain, not the Edge Worker route domain. Given we're relaying full site content through the Edge Worker (media, html - there's some large files, etc) we'd rather not await the fetch to find-and-replace the content. Is it possible to do 'find-and-replace' while streaming the response? I appreciate that there's the HTMLRewrite transformation, but as I understand it, it doesn't handle headers - right? Are there better ways to correct the difference in domain referencing caused by using fetch() within an EW?
  • s

    Simone's brother.

    01/21/2021, 7:44 AM
    Hello
  • s

    Simone's brother.

    01/21/2021, 7:44 AM
    I have a problem with my domain.
  • e

    eidam | SuperSaaS

    01/21/2021, 9:59 AM
    Hello there! Unless its related to Workers its best for the community https://community.cloudflare.com/, but try to give specifics just in case someone will be able to help ๐Ÿ™‚
  • a

    Alex Braunreuther

    01/21/2021, 11:38 AM
    Hi there, has anyone tried to use NestJS https://nestjs.com/ on workers? I played a bit with FAB https://fab.dev/ but couldn't get it working. Maybe somebody here had more success
  • y

    Yoav

    01/21/2021, 12:26 PM
    Is this possible enabling an images sharing on this Discord? It'd make things so much easier for when sharing feedbacks or bugs reporting.
  • e

    eidam | SuperSaaS

    01/21/2021, 3:33 PM
    Used Next.js for static website, if you are looking for edge props, then I would recommend https://flareact.com/
  • e

    eidam | SuperSaaS

    01/21/2021, 3:34 PM
    Unfortunately images were misused to share inappropriate content just after the announcement of public Discord server, so it was disabled to mitigate it. I guess admins will allow it once again in the future ๐Ÿค” @User will have more details
  • g

    Greg Brimble | Cloudflare Pages

    01/21/2021, 3:36 PM
    In the meantime, you can use an image-hosting service like https://imgur.com/ and just post the link. Bit of a faff, we know :/
  • a

    albert-zhao

    01/21/2021, 3:48 PM
    @User and I just enabled images again for everyone. Think we're good as long as no spam/private info (such as your wrangler toml file) shows up ๐Ÿ™‚
  • t

    theGagne

    01/21/2021, 4:01 PM
    wrangler toml isn't 'secret' I thought?
  • t

    theGagne

    01/21/2021, 4:01 PM
    just zone / account id which are 'safe' to share?
  • g

    Greg Brimble | Cloudflare Pages

    01/21/2021, 4:02 PM
    Yeah,
    wrangler.toml
    is fine as long as you're not putting secrets as
    vars
    or anything like that ๐Ÿ™‚
  • t

    theGagne

    01/21/2021, 4:03 PM
    yeah don't do that... we have secrets for a reason ๐Ÿ™‚
  • k

    kristian

    01/21/2021, 4:40 PM
    morning ๐Ÿ‘‹
  • g

    Greg Brimble | Cloudflare Pages

    01/21/2021, 4:54 PM
    Hey everyone! We've got a Workers bot in this server now! Use
    /docs <term>
    to search the Workers documentation and
    /script <url> <title?>
    to share a script from cloudflareworkers.com! Code lives here (https://github.com/gregbrimble/cloudflare-workers-discord-bot) for the time being, but we'll move it to a community GitHub org once we set one up, but any PRs or feature requests are welcome!
1...646566...2509Latest