I have 2 apps, web and api, both of which will point to seperate subdomains on the same domain. To setup certs for both apps I need to validate the cert by setting the_acme-challenge. However it is not possible to add 2 cnames to _acme-challenge.
Is there a recommended way of having multiple apps point to the same domain?
Here’s a workaround: Set the DNS for one challenge, then wait for fly to validate and retrieve your certificate. You no longer need the DNS CNAME once you have the cert, you can delete it, then repeat with your second DNS challenge.
I don’t know if fly supports wildcard certs on a domain, or if it can bundle multiple names in a single cert request. Both of those options would let you use one DNS challenge since they would be one certificate request.