I simply cannot figure out how to set up Railway with Cloudflare (or vice versa?)
materwelondhruv
PROOP

2 years ago

Really need someone to help me set it all up.

Here's what I have right now

  • I have a domain registered with Cloudflare with its SSL/TLS encryption mode set to Full. Just Full, not Full strict.
  • In my services across the project, I have two that have a DNS record on cloudflare with proxy enabled (orange cloud).
  • When they're proxied, they simply do not load. "Can't establish a secure connection to the server".

I have limited knowledge when it comes to http and networking so I would really appreciate if someone can help me get this up and running.

Also, weirdly, one address works on safari, but doesn't on any other browser. And the other address that was working 3 days ago simply does not work anymore.

I'm on the free plan on cloudflare, bit I should still be able to use the root domain and single level subdomains with proxy.

Project ID: f46dc121-58c2-4b80-85f8-8df8b7728ef5

Solved

21 Replies

materwelondhruv
PROOP

2 years ago

i also asked gpt and had it ask me more questions. So this could help give more context


materwelondhruv
PROOP

2 years ago

I tried to set up certs and use 443 as port but that resulted in even the railway.app URL not working. I reverted my change. Just 443 does still work for railway's url. Everything works when I don't use cloudflare proxy


2 years ago

If youre able to share an example url that doesn't work, that might help people take a closer look at the config and errors


materwelondhruv
PROOP

2 years ago


materwelondhruv
PROOP

2 years ago

mb, should've included that before


2 years ago

on cloudflare under ssl/tls > Edge Certificates, is there a certificate displayed?

fwiw since this happens so early in the connection it feels very much like a cloudflare issue rather than a railway issue


materwelondhruv
PROOP

2 years ago

none. But uploading or ordering requires me to upgrade my free plan.


materwelondhruv
PROOP

2 years ago

but from what i've read, cloudflare assigns a cert of none are present right?


2 years ago

its definitely not supposed to be like that, yours has somehow broke

can you please try going to the universal ssl section near the bottom and click disable, wait a few minutes and click enable again? it should reset it


materwelondhruv
PROOP

2 years ago

Okay, I just did that. It says pending validation so I assume I just have to wait


2 years ago

yeah give it some time


materwelondhruv
PROOP

2 years ago

thanks for the help. I'll bump here once anything changes <:heartWumpus:856312690675154955>


2 years ago

if i visit the url now it looks like its working?


materwelondhruv
PROOP

2 years ago

OHHHH MAAA GAAWWWWDDDDDD


materwelondhruv
PROOP

2 years ago

<:HH_cryCat:847179452035104779>


materwelondhruv
PROOP

2 years ago

4 hours I've been trying to figure this out


materwelondhruv
PROOP

2 years ago

thank you <:HH_cryAqua:847179451162951692>


2 years ago

and yeah turns out it was a cloudflare issue, your accounts universal ssl somehow got broken and needed to be reset. hopefully it shouldnt break again but if it does you can try the same steps


materwelondhruv
PROOP

2 years ago

I can't believe that was IT. why is no resource online pointing to this solution


2 years ago

thank you Erisa!


2 years ago

!s


Status changed to Solved brody • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...