bnason
Explore posts from serversCDCloudflare Developers
•Created by bnason on 10/22/2024 in #general-help
Serve url on any subdomain
I have an app deployed at https://foo.example.com/__debug and I would like to have all urls that match /_debug/* on ANY of our subdomains (IE bar.example.com, baz.example) to be routed behind the scenes (NOT redirected) to that url. For instance, if someone goes to https://bar.example.com/__debug/cookies I want Cloudflare to basically change the backend to the foo.example.com ip and served the page really at https://foo.example.com/__debug/cookies
If I were doing this in HAProxy, I would create an acl
acl debug ^\/__debug/.*
with use_backend foo if debug
9 replies
CDCloudflare Developers
•Created by bnason on 7/26/2024 in #general-help
Can't login to Dashboard
The captcha is not showing up for me. I've cleared my cache and restarted. It DOES work in an incognito window however so I don't know what else to do. If I open the devtools in Chrome, I get
3 replies
CDCloudflare Developers
•Created by bnason on 7/25/2024 in #workers-help
Using zlib.deflateRaw
Is it possible to use
zlib.deflateRaw
? When I attempt to I get an Error 1101
Cloudflare page.6 replies
CDCloudflare Developers
•Created by bnason on 7/17/2024 in #workers-help
Worker on existing website
I have an existing website at www.example.com hosted outside cloudflare and I need a worker to respond to 2 endpoints at www.example.com/foo and /bar
Is that possible and where might I find docs specific to it?
12 replies
CDCloudflare Developers
•Created by bnason on 6/25/2024 in #workers-help
Error 1101 on code surrounded by try/catch
I'm deploying a Nuxt.js application and my pages event handler is being called but somehow seems to just "stop" executing code and I get the Error 1101 message.
The reason I say stop is that I've added console.log lines between every single statement to pinpoint what is going on and the entire thing is wrapped in a try catch block but the catch is never being called.
4 replies
CDCloudflare Developers
•Created by bnason on 6/24/2024 in #workers-help
import is undefined
I'm using a package called
samlify
which has imports some items from package node-forge
,. For some reason, the node-forge
imports are undefined in the cloudflare worker. I'm getting an error TypeError: Cannot read property of undefined (reading 'decode64') ....
Can anyone help?4 replies
CDCloudflare Developers
•Created by bnason on 6/22/2024 in #workers-help
SAML
I'm looking for a SAML typescript library for my Nuxt pages/worker app. I'm currently trying to use
samlify
but I'm getting a 500 error Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler.
and I believe it's causing it.2 replies