R
Railway12mo ago
Charbel

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