Matt
Matt
CDCloudflare Developers
Created by Matt on 1/29/2024 in #general-help
520 error when proxy is enabled during multipart upload... only if my origin returns a 4xx error
I have a file upload daemon proxied through CF that handles multipart file uploads. It returns 4xx authorization errors for bad headers etc... - Without proxying it returns 100 continue and uploads - When proxying with good headers it returns 100 continue and uploads - When proxying and my origin responds 401 for bad headers, I get a 520 error back in curl - Without proxying and with bad headers I get the 401 back normally. Is there maybe some special processing or timeout for multipart uploads at play here?
1 replies
CDCloudflare Developers
Created by Matt on 12/22/2023 in #general-help
No way to rate limit requests from Vercel without enterprise?!
I was planning on using Cloudflare rate limiting to protect my API, but since most of our requests come from a frontend hosted on Vercel, I was planning on using the x-forwarded-for header to increment buckets on real user IPs instead of Vercel's address. It looks like request header filtering is an enterprise only feature, we're stuck on business. Is there any workaround or do we need to roll this ourselves?
19 replies
CDCloudflare Developers
Created by Matt on 11/20/2023 in #general-help
Serve fallback image instead of 404 from r2
I'm using R2 to serve user avatars. If no avatar exists in the bucket for the given user ID, I'd like to return a default avatar as the 404 response. Is there any way to do this without using workers?
31 replies
CDCloudflare Developers
Created by Matt on 11/17/2023 in #general-help
Any way to disable ~10s sticky load balancing per IP?
We're using CF load balancing to randomly route (selected in pool/lb options) to 3 origin nodes. When I run a load test from my PC, I get firehosed to a single origin for ~10s and then it switches. Any way to change this behavior?
1 replies