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

a year 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

a year ago

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


materwelondhruv
PROOP

a year 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


erisa
HOBBY

a year 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

a year ago


materwelondhruv
PROOP

a year ago

mb, should've included that before


erisa
HOBBY

a year 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

a year ago

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


materwelondhruv
PROOP

a year ago

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


erisa
HOBBY

a year 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

a year ago

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


erisa
HOBBY

a year ago

yeah give it some time


materwelondhruv
PROOP

a year ago

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


erisa
HOBBY

a year ago

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


materwelondhruv
PROOP

a year ago

OHHHH MAAA GAAWWWWDDDDDD


materwelondhruv
PROOP

a year ago

<:HH_cryCat:847179452035104779>


materwelondhruv
PROOP

a year ago

4 hours I've been trying to figure this out


materwelondhruv
PROOP

a year ago

thank you <:HH_cryAqua:847179451162951692>


erisa
HOBBY

a year 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

a year ago

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


brody
EMPLOYEE

a year ago

thank you Erisa!


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody 11 months ago


Loading...