We are using the old way of doing the custom domains and now we seem to have to migrate to the new way of doing it (NGINX proxy).
But the problem is that the new way doesn’t work consistently (every ~third request fails or is taking a lot of time, Google can’t access the pages from custom domain and etc, while everything works when accessing the resource with a direct link without using custom domain routed via fly.io). Everything also works fine for the domains that are still not migrated and are using the old setup.
We implemented the new flow in the same way as the documentation describes it (SSL for Custom Domains · Fly) so we are kind of baffled at what is wrong and what is happening.
Is there something we are doing wrong? Or is there a way to get the logs so we can better understand?
Another question is, do we need to deploy Docker/NGINX app to all datacenters, as well as do we need to define autoscaling somewhere, or how is the uptime/high availability handled in this case?
Any help would be gratefully appreciated, thank you.