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

    Skye

    05/26/2023, 6:26 PM
    You can ignore that for secrets
  • n

    nikivi

    05/26/2023, 6:26 PM
    does it want this
  • n

    nikivi

    05/26/2023, 6:26 PM
    like me listing them
  • n

    nikivi

    05/26/2023, 6:26 PM
    or what
  • n

    nikivi

    05/26/2023, 6:27 PM

    https://cdn.discordapp.com/attachments/779390076219686943/1111722175636971600/image.png▾

  • n

    nikivi

    05/26/2023, 6:27 PM
    its hard to understand what it wants
  • n

    nikivi

    05/26/2023, 6:27 PM
    or ok i guess i ignore
  • s

    Skye

    05/26/2023, 6:27 PM
    This example is simply showing the secrets commented out in your wrangler.toml, so anyone else looking at it knows which secrets they should specify - and you don't have to do this if you don't want to
  • s

    Skye

    05/26/2023, 6:27 PM
    Anything not commented out in the [vars] section is a regular (non-secret) env variable, that you include in the file normally
  • a

    Akhilesh

    05/26/2023, 6:42 PM
    Hey @dave - did you get answer to this question?
  • d

    dave

    05/26/2023, 6:44 PM
    I think it streams instead of buffers by default, based on the fact that waiting until fully buffered is an enterprise feature.
  • d

    dave

    05/26/2023, 6:44 PM
    we ended up going all-in on S3 APIs 😛
  • a

    albert

    05/26/2023, 7:44 PM
    FYI requests are fully buffered by default. The request is not sent to your server before the client has finished sending the entire body.
  • d

    dave

    05/26/2023, 7:44 PM
    oh interesting, didn't know uploads were different than downloads!
  • a

    albert

    05/26/2023, 7:45 PM
    Downloads aren't buffered unless you are on Enterprise and enable Response Buffering.
  • a

    albert

    05/26/2023, 7:45 PM
    The reason for buffering requests is so WAF can run on the request body.
  • d

    dave

    05/26/2023, 7:45 PM
    Ahhh yes, that makes sense!
  • d

    dave

    05/26/2023, 7:45 PM
    that also sorta makes sense why there's a 100MB limit
  • s

    Skye

    05/26/2023, 7:46 PM
    It's also to prevent slow loris attacks
  • a

    albert

    05/26/2023, 7:50 PM
    Usually, disabling request buffering is only done for Enterprise customers, but I believe - though don't quote me on this - that PAYGO customers can get it disabled if they ask nicely and are lucky. There's nothing about unbuffered uploads that inherently makes it Enterprise only. If anything, it reduces load on Cloudflare.
  • h

    harris

    05/26/2023, 9:17 PM
    I'd like to create multiple workers within the same project, is the wrangler.toml a 1:1 relationship per worker?
  • j

    James

    05/26/2023, 9:21 PM
    It is, yes. You'd almost certainly want a separate wangler.toml per worker
  • h

    harris

    05/26/2023, 9:24 PM
    Gotcha! thanks
  • h

    harris

    05/26/2023, 9:27 PM
    Is it possible to have a worker explicitly execute in 3 different locations at the same time? I'm creating a dashboard that's monitoring a public API and would like to account for geo differences
  • j

    James

    05/26/2023, 9:30 PM
    Not really, no. Workers deploy everywhere. If you have 3 VPSes in those regions, you could hit the worker from those locations. With Smart Placement (https://developers.cloudflare.com/workers/platform/smart-placement/), the Worker will move to a specific region if it makes sense (due to hitting a regional DB multiple timese for example), but that's also not really what you want it sounds like.
  • j

    James

    05/26/2023, 9:30 PM
    Cloudflare has a specific healthchecks product though that you can use to hit stuff from specific regions - perhaps that would be more suited?
  • h

    HardAtWork

    05/26/2023, 9:30 PM
    You can also use a DO(with some trial and error), or a Load Balancer Health Check(might be Enterprise only)
  • h

    HardAtWork

    05/26/2023, 9:31 PM
    What James said
  • h

    harris

    05/26/2023, 9:31 PM
    ah so i'm just doing this as a personal project, and it's not actually my API
  • h

    harris

    05/26/2023, 9:31 PM

    https://cdn.discordapp.com/attachments/779390076219686943/1111768605751775313/image.png▾

1...250025012502...2509Latest