MatijaL
User custom domain on app subdomain and SSL
Hello,
I’m building an app where user can host their dashboard pages on app subdomain - username.myapp.com. App is hosted on Fly.io, I’ve set everything up and subdomains work just fine. The problem is when users want to connect their custom domain to point to their subdomain. I use cloudflare in front and users are getting Cloudflare Error 525 - SSL Handshake Failed.
The thing is, I’ve never built something like this and I don’t really understand how to setup SSL properly. I know I could create certificates on Fly for each user custom domain but is there a better way?
As I said, I don’t have experience with this so I would really appreciate some overview and pointers how something like this should be done.
Thanks
Marked As Solved
D4no0
Cloudflare has a tunnel checkbox enabled by default when creating new records, make sure that it’s disabled for all the records.
Also Liked
MatijaL
As I said, I don’t have experience with this so I’m probably doing things wrong, that’s why I’m asking here.
So, my DNS settings are:
CNAME www my.app.com
CNAME * my.app.com
CNAME @ my.app.com
I don’t use captca, I just use Cloudflare for DNS.
All I want to build really is the ability for users to connect their custom domains to their subdomains on my app. And to be honest, I have no clue how to set it up correctly.
This is just a test app so no real users here so I can change everything, and I just want to learn this thing and I’m completely lost.
MatijaL
Ooook… this “magically” fixed the problem…
this is why AI won’t replace developers so soon… thanks a lot!








