3,346
questions
0
votes
0
answers
5
views
Import kv module to cloudflare worker with javascript
I am trying to import the kv module to my cloudflare worker (i.e. to do put and get requests to it). I created it with wrangler (v3.78.12). I just dont know how to import it lol
From some research, I ...
0
votes
1
answer
20
views
Error 5455 when uploading to Cloudflare images using python library
I use the latest version of the python library from Cloudflare to try to upload an image programmatically to my Cloudflare Images account.
The code is quite simple:
import io
from pathlib import Path
...
0
votes
0
answers
13
views
Cloudflare API: how can I get the age of the cache using the API?
I can purge the cache via Cloudflare's API https://developers.cloudflare.com/api/operations/zone-purge
using this function:
https://gist.github.com/Greg-Boggs/73796406278cd67334db08dc052931dd
and I ...
-1
votes
0
answers
22
views
Unable to Pause Multiple Cloudflare Zones (Websites) Using Terraform
I'm using Terraform on macOS, and I need to pause 64 websites on Cloudflare. Here is my current setup:
terraform.tfvars
api_token = "my_api_token"
account_id = "my_account_id"
...
0
votes
0
answers
19
views
having problem understanding cloudflare R2 API philosophy and security
after two days browsing through their poor documentation i'm still having problems grasping how exactly R2 manages security per bucket, and how should i handle it via API.
basically i'm building a ...
0
votes
0
answers
24
views
How to inject a Cloudflare Turnstile token into Puppeteer?
I'm trying to automate access to a website that uses Cloudflare Turnstile. I've managed to get the token from cf-turnstile-response, but I don't know how to inject it to complete the challenge.
...
-3
votes
0
answers
16
views
server showing 404 instead of 403 unauthorized page after i have put deny for a file in htaccess [closed]
i have put deny all code for a specifci few files in htaccess , it does'nt show 403 instead shows 404 wordpress page in my cloudflare server. but the same code shows 403 forbidden page in hostinger.I ...
1
vote
0
answers
48
views
How do I have Cloudflare respect Cache-Control directives for a FastAPI App deployed on Digitalocean App Platform?
How do I have Cloudflare respect Cache-Control directives for a FastAPI App deployed on Digitalocean App Platform?
Problem
I'm experiencing an issue with caching in my FastAPI application when it's ...
0
votes
0
answers
25
views
Proxy vs DNS Only CNAME [closed]
We have DNS hosted on Cloudfalre and a web app running on AWS App Runner. We added a custom domain and setup the CNAME records. This worked as expected.
My question is why do the CNAME records need ...
0
votes
0
answers
15
views
Bad gateway when serving image from Next JS and Cloudflare
I have a project that I build using Next Js, Cloudflare, and Docker. There's nothing wrong from the backend and I can get all the data of the products. But the time to serve all image from the ...
-2
votes
1
answer
38
views
How can I use Cloudflare Pages as an API server like Cloudflare Workers? [closed]
I'm currently using Cloudflare Workers as an API endpoint to return data to my application when I call the Worker URL. I'd like to achieve the same functionality using Cloudflare Pages. How can I ...
0
votes
0
answers
9
views
Alternative to --from-local-d1 `prisma migrate diff`
I have followed the tutorial here - https://www.prisma.io/docs/orm/overview/databases/cloudflare-d1#3-generate-sql-statements-using-prisma-migrate-diff
I ran this command:
npx prisma migrate diff \
-...
0
votes
0
answers
31
views
Is it possible to do browser cache but not edge cache (on CDN server) in Cloudflare? [closed]
I'm making a Wordpress website and I'm curious if I can make Cloudflare cache certain pages on user's browser without it getting cached on Cloudflare CDN server.
I have a few dynamic pages (user ...
0
votes
1
answer
21
views
keycloak behind synology reverse proxy
I've got a keycloak docker container running on a synology rackstation. This rackstation is accessible via a public domain and protected by cloudflare upfront. I can access the keycloak instance in my ...
0
votes
1
answer
54
views
ngrok, allow anonymous access for specific routes
I'm using oauth with microsoft, but I need some api routes to be reached without auth. Webhooks for example.
I there a way to do this with ngrok or any other tunneling provider (Cloudflare etc)?
Here'...