3 months ago
Hello,
When I connect a custom domain to my project, everything works correctly for some time, but later I start experiencing SSL certificate issues. The project continues to work properly on the automatically generated domain, however the SSL certificate on the custom domain periodically fails or becomes invalid.
My domain registrar insists that it is not possible to use a CNAME record and that only an ALIAS record can be configured. Currently, my DNS configuration looks as follows:
Could you please advise what might be misconfigured on my side? I urgently need to deploy this project to production, but the SSL certificate keeps breaking on the custom domain and causes the error described above.
5 Replies
3 months ago
If your domain registrar doesn't support root-level CNAMEs, you'll need to use one that does (such as Cloudflare) as your authoritative DNS provider. Refer to https://docs.railway.com/guides/public-networking#adding-a-custom-domain for more information.
Status changed to Awaiting User Response Railway • 3 months ago
3 months ago
But we are using ALIAS as I said before. Sometimes it works sometimes doesn`t. Why?
Status changed to Awaiting Railway Response Railway • 3 months ago
3 months ago
You'll need to use a CNAME. ALIAS records are not reliable and not recommended for use with Railway services.
Status changed to Awaiting User Response Railway • 3 months ago
3 months ago
I didn`t know it. Can you share link for documentation?
Attachments
vikafoer
I didn`t know it. Can you share link for documentation?
3 months ago
You will need to proxy traffic through Cloudflare, and then use the first bullet in that list. You can find instructions for proxying your domain here: https://developers.cloudflare.com/fundamentals/manage-domains/add-site/