Custom domains can't be reached after adding cloudflare proxy
I just purchased a domain on cloudflare and added it on my service on railway. I added the DNS record on cloudflare, and it now shows "Cloudflare proxy detected" in railway. However, I don't know which URL can now be used to access my APIs. (If I turn off the proxy from cloudflare, I can make API calls using my newly purchased domain, but I want it to be enabled)
16 Replies
Project ID:
N/A
N/A
Can you show me your SSL settings on cloudflare?
can you walk me through where to find them ?
this is my first time using cloudflare
I remember choosing always use HTTPS and switch HTTP requests to HTTPS somewhere though
On cloudflare, select your domain, then on the left side of the screen in the menu, click on SSL
it's set to flexible
![No description](https://cdn.answeroverflow.com/1178020009646231662/image.png)
Set it to FULL
Not FULL (STRICT)
Third option down
okay done
it now shows "Waiting for DNS update " in railway, but I can call my backend using the custom domain
That's fine, it just needs to update on their end
So, you can access the domain now?
is it possible to use a subdomain, for example instead of domain.com, backend-service.domain.com ?
Yeah, you just need to add the cname for it
Just like you did the root domain
yes, I can safely remove the generated railway domain I think? And anytime I make a request usingmy custom domain, it will first go through cloudflare, correct ?
Yup
That is correct
okay thanks, appreciate your help