I am struggling with Custom Domains on Fly. I have a two issues the first is more straightforward and probably something I have just missed:
I was able to add a cert for my domain example.com
on my app noahapp
. I added the A, AAAA on the GoDaddy DNS management. I also added the CNAME _acme-challenge
to the DNS. I got valid checks on all this (from the fly.io dashboard). I also added the CNAME that I want to direct to the fly app as CNAME dev
→ noahapp.fly.dev
but when I go to dev.example.com
I get a “Site can’t be reached” error. It’s been like this for an hour so it doesn’t seem to be a delay with GoDaddy Configuration. On fly.io the CNAME tab is just empty (see image). Not sure what I am doing wrong? I followed the Custom Domain instructions in the docs.
The second question I have is around proper set up and how to use custom domains. Imagine I want to have:
dev.example.com
→noahsapp.fly.dev
dev.api.example.com
→noahapi.fly.dev
Would I need to add certificates for both fly apps? If so how I can do this when I would need another _acme-challenge
? I can’t imagine each fly app would need it’s own custom domain?!
Any and all help is appreciated. Thanks!