Custom Domain → Multiple Apps

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 devnoahapp.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.comnoahsapp.fly.dev
  • dev.api.example.comnoahapi.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!

Looks like the dashboard has a bug where the values disappear.

The example you have provided would result in 2 ACME challenge CNAMEs, _acme-challenge.dev.example.com and _acme-challenge.dev.api.example.com.

1 Like

Ah I see! The first question was actually a symptom of not understanding the answer to the second! I had set a custom domain of example.com and not dev.example.com and had mismatched CNAME record and A, AAAA records. The UI bug was probably just showing nothing since I used the base host of example.com vs dev.example.com.

Thanks so much!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.