limzykenneth
limzykenneth
CDCloudflare Developers
Created by limzykenneth on 7/24/2024 in #pages-help
Domain fronting with Cloudflare Pages
I guess that can possibly work as well. Will need to think about whether to go with this or workers site maybe. Thanks!
23 replies
CDCloudflare Developers
Created by limzykenneth on 7/24/2024 in #pages-help
Domain fronting with Cloudflare Pages
Right I think I get it now, so I'll point my origin IP to bar.example.com instead and deploy the pages to example.com then use resolveOverride to proxy the request as needed, if that is the gist of it?
23 replies
CDCloudflare Developers
Created by limzykenneth on 7/24/2024 in #pages-help
Domain fronting with Cloudflare Pages
Instead of https://bar.example.com since I have no reason to deploy there if the pages is to be on https://example.com
23 replies
CDCloudflare Developers
Created by limzykenneth on 7/24/2024 in #pages-help
Domain fronting with Cloudflare Pages
Do you mean the Functions will resolve all requests except for https://example.com/bar to my origin's A record IP address with resolveOverrride?
23 replies
CDCloudflare Developers
Created by limzykenneth on 7/24/2024 in #pages-help
Domain fronting with Cloudflare Pages
Hmm...I'm not sure I understand this. Say I have my origin at https://example.com with A record to an IP address and I only need the static Cloudflare Pages on https://example.com/bar. Would I be deploying the pages to https://bar.example.com instead then use resolveOverride in the fronting worker to resolve requests to https://example.com/bar to https://bar.example.com? If that's the idea I guess it could work but I slightly prefer doing just one deployment of a worker/pages instead of deploying twice, once the domain fronting worker and another for the pages. I'll need to think about my setup a bit I guess.
23 replies
CDCloudflare Developers
Created by limzykenneth on 7/24/2024 in #pages-help
Domain fronting with Cloudflare Pages
A Record
23 replies
CDCloudflare Developers
Created by limzykenneth on 7/24/2024 in #pages-help
Domain fronting with Cloudflare Pages
Does that mean the [site] key in wrangler.toml will still continue to work or am I better off going with a more custom solution for deployment of static files?
23 replies
CDCloudflare Developers
Created by limzykenneth on 7/24/2024 in #pages-help
Domain fronting with Cloudflare Pages
That's what I thought, so I can't use Pages in this case then? Should I use Workers Site for hosting the static page or is that deprecated and will be removed soon?
23 replies
CDCloudflare Developers
Created by limzykenneth on 7/24/2024 in #pages-help
Domain fronting with Cloudflare Pages
To the same origin but not on cloudflare, ie. it is doing fetch(req) or ctx.passThroughOnException()
23 replies