#Cannot enable wildcard for custom hostname

20 messages · Page 1 of 1 (latest)

kind sail
#

I'm trying to build a worker acting as a reverse proxy, and am using custom hostnames and Cloudflare for SaaS / SSL/TLS to do this.

I'd like to route all traffic from customer domain *.customer.com to my worker, hosted on proxy.locadapt.com.

However, I don't see an option to enable wildcards — any suggestions?

raven hedge
kind sail
#

Oof OK I missed that, thank you @raven hedge !

#

Would you know by chance how "enterprise" you have to be to get the Enterprise billing? This is for a student startup, not sure if they work with smaller orgs.

raven hedge
kind sail
#

Great thank you for this information! I'll look into the program and migrate elsewhere if it doesn't work out.

Sorry to bug you again but literally the only thing I'd need this for is to prevent a cross-user banned error à la https://es.simonilincev.com/. Would you by chance know of any alternate ways of proxying client domains to a Cloudflare site?

raven hedge
# kind sail Great thank you for this information! I'll look into the program and migrate els...

I'm assuming it's not an option to just add subdomains as custom hostnames as they use them? You'd just have to add the es subdomain
Other then that, if they're using Cloudflare on their site, you could use a worker with a wildcard proxying requests to your site.
Otherwise, Business or higher can be used with CNAME setups, you add their base simonilincev.com as a cname biz or higher partial zone, and then for each subdomain they want to use, you have them cname to a specific cloudflare.net subdomain and configure the record on their end

kind sail
# raven hedge I'm assuming it's not an option to just add subdomains as custom hostnames as th...

Hmm I mean I could add subdomains as custom hostnames like you suggested on a piece-by-piece basis, yes. However it'd be a huge pain for the customers — if they have like 20 languages, would have to setup 20x TXT and CNAME records, plus we get charged 10c/mo for each (less of an issue).

Otherwise, Business or higher can be used with CNAME setups, you add their base simonilincev.com as a cname biz or higher partial zone, and then for each subdomain they want to use, you have them cname to a specific cloudflare.net subdomain and configure the record on their end

This sounds a bit more promising but would require similar piece-wise work for each subdomain?

Many thanks for your support, every response saves me like 1 hr of research 🙏

raven hedge
# kind sail Hmm I mean I could add subdomains as custom hostnames like you suggested on a pi...

Hmm I mean I could add subdomains as custom hostnames like you suggested on a piece-by-piece basis, yes. However it'd be a huge pain for the customers — if they have like 20 languages, would have to setup 20x TXT and CNAME records, plus we get charged 10c/mo for each (less of an issue).
You can skip prevalidation, just do cname + http validation, they just add cname and wait. Would incur more downtime compared to prevalidation though if they were already using the domain

require similar piece-wise work for each subdomain?
yup

#

actually funny quirk with the business cname setup, you can't use that if the root domain dns is already on Cloudflare simonilincev.com is on Cloudflare (porkbun uses them for their default dns) so wouldn't work, they'd have to switch to a different external dns for that to work, I know someone who got hit with that before

kind sail
#

You can skip prevalidation, just do cname + http validation, they just add cname and wait. Would incur more downtime compared to prevalidation though if they were already using the domain.

Alright might just go with this then, good to stay with the Cloudflare ecosystem. I suppose I could have the customers set up the CNAME wildcard, then assuming the ("automatic" API created custom hostname) matches for the wildcard subdomain, things should work?

kind sail
raven hedge
# kind sail > You can skip prevalidation, just do cname + http validation, they just add cna...

Alright might just go with this then, good to stay with the Cloudflare ecosystem. I suppose I could have the customers set up the CNAME wildcard, then assuming the ("automatic" API created custom hostname) matches for the wildcard subdomain, things should work?
You could have them wildcard cname to your zone and then add the invidiual subdomains you want yea, wildcards are kind of messy and can lead to confusions though, and would result in returning ugly errors for unused subdomains (either cname cross user banned or ssl no cypher found if missing wildcard ssl cert/not on cf)

raven hedge
kind sail
#

Sounds good, I'll explore this option then. Cheers!

kind sail
#

Thank you!!!

kind sail
#

Even with meta tags and whatnot 😎