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