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
Percy
Percy10mo ago
Project ID: N/A
charbelh3
charbelh310mo ago
N/A
MantisInABox
MantisInABox10mo ago
Can you show me your SSL settings on cloudflare?
charbelh3
charbelh310mo ago
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
MantisInABox
MantisInABox10mo ago
On cloudflare, select your domain, then on the left side of the screen in the menu, click on SSL
charbelh3
charbelh310mo ago
it's set to flexible
charbelh3
charbelh310mo ago
No description
MantisInABox
MantisInABox10mo ago
Set it to FULL Not FULL (STRICT) Third option down
charbelh3
charbelh310mo ago
okay done it now shows "Waiting for DNS update " in railway, but I can call my backend using the custom domain
MantisInABox
MantisInABox10mo ago
That's fine, it just needs to update on their end So, you can access the domain now?
charbelh3
charbelh310mo ago
is it possible to use a subdomain, for example instead of domain.com, backend-service.domain.com ?
MantisInABox
MantisInABox10mo ago
Yeah, you just need to add the cname for it Just like you did the root domain
charbelh3
charbelh310mo ago
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 ?
MantisInABox
MantisInABox10mo ago
Yup That is correct
charbelh3
charbelh310mo ago
okay thanks, appreciate your help
Want results from more Discord servers?
Add your server